diff --git a/src/ifcparse/IfcHierarchyHelper.h b/src/ifcparse/IfcHierarchyHelper.h index c303942dd5..f8a1b046e9 100644 --- a/src/ifcparse/IfcHierarchyHelper.h +++ b/src/ifcparse/IfcHierarchyHelper.h @@ -330,6 +330,10 @@ aggregate_of_instance::ptr get_children_of_relation(Ifc4x3_add2::IfcRelAggregate 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) { t->setRelatedElements(cs->as()); } @@ -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) { t->setRelatedObjects(cs->as()); } + +void set_children_of_relation(Ifc4x3_add2::IfcRelNests* t, aggregate_of_instance::ptr& cs) { + t->setRelatedObjects(cs->as()); +} #endif IfcUtil::IfcBaseClass* get_parent_of_relation(IfcUtil::IfcBaseClass* t) {