mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Fix traversal of type relationships in IFC4 XML output
This commit is contained in:
@@ -223,9 +223,15 @@ ptree& descend(IfcObjectDefinition* product, ptree& tree) {
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef USE_IFC4
|
||||
IfcTypeObject::list::ptr types = get_related
|
||||
<IfcObject, IfcRelDefinesByType, IfcTypeObject>
|
||||
(object, &IfcObject::IsTypedBy, &IfcRelDefinesByType::RelatingType);
|
||||
#else
|
||||
IfcTypeObject::list::ptr types = get_related
|
||||
<IfcObject, IfcRelDefinesByType, IfcTypeObject>
|
||||
(object, &IfcObject::IsDefinedBy, &IfcRelDefinesByType::RelatingType);
|
||||
#endif
|
||||
|
||||
for (IfcTypeObject::list::it it = types->begin(); it != types->end(); ++it) {
|
||||
IfcTypeObject* type = *it;
|
||||
|
||||
Reference in New Issue
Block a user