mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Minor fix to new collection organisation for drawings
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user