From 3e0ef46a37d14fbb4df1ab90113da5439417c7a0 Mon Sep 17 00:00:00 2001 From: Richard Brice <37087370+RickBrice@users.noreply.github.com> Date: Sun, 20 Jul 2025 15:31:35 -0700 Subject: [PATCH] Updates IfcHierarchyHelper::addRelatedObject to work with IfcRelNests --- src/ifcparse/IfcHierarchyHelper.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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) {