Fix traversal of type relationships in IFC4 XML output

This commit is contained in:
Thomas Krijnen
2016-10-09 12:44:37 +02:00
parent bc000fcbab
commit 86c9d7074b
+6
View File
@@ -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;