Skip to content

Commit 3e0ef46

Browse files
committed
Updates IfcHierarchyHelper::addRelatedObject to work with IfcRelNests
1 parent 689d8d1 commit 3e0ef46

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/ifcparse/IfcHierarchyHelper.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,13 +330,21 @@ aggregate_of_instance::ptr get_children_of_relation(Ifc4x3_add2::IfcRelAggregate
330330
return t->RelatedObjects()->generalize();
331331
}
332332

333+
aggregate_of_instance::ptr get_children_of_relation(Ifc4x3_add2::IfcRelNests* t) {
334+
return t->RelatedObjects()->generalize();
335+
}
336+
333337
void set_children_of_relation(Ifc4x3_add2::IfcRelContainedInSpatialStructure* t, aggregate_of_instance::ptr& cs) {
334338
t->setRelatedElements(cs->as<Ifc4x3_add2::IfcProduct>());
335339
}
336340

337341
void set_children_of_relation(Ifc4x3_add2::IfcRelAggregates* t, aggregate_of_instance::ptr& cs) {
338342
t->setRelatedObjects(cs->as<Ifc4x3_add2::IfcObjectDefinition>());
339343
}
344+
345+
void set_children_of_relation(Ifc4x3_add2::IfcRelNests* t, aggregate_of_instance::ptr& cs) {
346+
t->setRelatedObjects(cs->as<Ifc4x3_add2::IfcObjectDefinition>());
347+
}
340348
#endif
341349

342350
IfcUtil::IfcBaseClass* get_parent_of_relation(IfcUtil::IfcBaseClass* t) {

0 commit comments

Comments
 (0)