Minor fix to new collection organisation for drawings

This commit is contained in:
Dion Moult
2024-06-24 18:18:55 +10:00
parent 68d3771a83
commit ac58e6b8b2
2 changed files with 9 additions and 5 deletions
@@ -468,7 +468,7 @@ def get_type(element: ifcopenshell.entity_instance) -> Union[ifcopenshell.entity
schema = element.file.schema
if schema != "IFC2X3":
if is_typed_by := element.IsTypedBy:
if is_typed_by := getattr(element, "IsTypedBy", []):
return is_typed_by[0].RelatingType
return