mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 11:18:01 +00:00
Updates IfcHierarchyHelper::addRelatedObject to work with IfcRelNests
This commit is contained in:
@@ -330,6 +330,10 @@ aggregate_of_instance::ptr get_children_of_relation(Ifc4x3_add2::IfcRelAggregate
|
|||||||
return t->RelatedObjects()->generalize();
|
return t->RelatedObjects()->generalize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
aggregate_of_instance::ptr get_children_of_relation(Ifc4x3_add2::IfcRelNests* t) {
|
||||||
|
return t->RelatedObjects()->generalize();
|
||||||
|
}
|
||||||
|
|
||||||
void set_children_of_relation(Ifc4x3_add2::IfcRelContainedInSpatialStructure* t, aggregate_of_instance::ptr& cs) {
|
void set_children_of_relation(Ifc4x3_add2::IfcRelContainedInSpatialStructure* t, aggregate_of_instance::ptr& cs) {
|
||||||
t->setRelatedElements(cs->as<Ifc4x3_add2::IfcProduct>());
|
t->setRelatedElements(cs->as<Ifc4x3_add2::IfcProduct>());
|
||||||
}
|
}
|
||||||
@@ -337,6 +341,10 @@ void set_children_of_relation(Ifc4x3_add2::IfcRelContainedInSpatialStructure* t,
|
|||||||
void set_children_of_relation(Ifc4x3_add2::IfcRelAggregates* t, aggregate_of_instance::ptr& cs) {
|
void set_children_of_relation(Ifc4x3_add2::IfcRelAggregates* t, aggregate_of_instance::ptr& cs) {
|
||||||
t->setRelatedObjects(cs->as<Ifc4x3_add2::IfcObjectDefinition>());
|
t->setRelatedObjects(cs->as<Ifc4x3_add2::IfcObjectDefinition>());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void set_children_of_relation(Ifc4x3_add2::IfcRelNests* t, aggregate_of_instance::ptr& cs) {
|
||||||
|
t->setRelatedObjects(cs->as<Ifc4x3_add2::IfcObjectDefinition>());
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IfcUtil::IfcBaseClass* get_parent_of_relation(IfcUtil::IfcBaseClass* t) {
|
IfcUtil::IfcBaseClass* get_parent_of_relation(IfcUtil::IfcBaseClass* t) {
|
||||||
|
|||||||
Reference in New Issue
Block a user