mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 13:46:54 +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
|
IfcTypeObject::list::ptr types = get_related
|
||||||
<IfcObject, IfcRelDefinesByType, IfcTypeObject>
|
<IfcObject, IfcRelDefinesByType, IfcTypeObject>
|
||||||
(object, &IfcObject::IsDefinedBy, &IfcRelDefinesByType::RelatingType);
|
(object, &IfcObject::IsDefinedBy, &IfcRelDefinesByType::RelatingType);
|
||||||
|
#endif
|
||||||
|
|
||||||
for (IfcTypeObject::list::it it = types->begin(); it != types->end(); ++it) {
|
for (IfcTypeObject::list::it it = types->begin(); it != types->end(); ++it) {
|
||||||
IfcTypeObject* type = *it;
|
IfcTypeObject* type = *it;
|
||||||
|
|||||||
Reference in New Issue
Block a user