Fix bug creating a drawing if linked model schema doesn't match the main model schema

Co-Authored-By: Thomas Krijnen <1096535+aothms@users.noreply.github.com>
This commit is contained in:
Andrej730
2025-05-01 17:56:03 +05:00
parent d758d4aef5
commit 6961ca8ce7
+1 -1
View File
@@ -1850,7 +1850,7 @@ class Drawing(bonsai.core.tool.Drawing):
if include:
elements = ifcopenshell.util.selector.filter_elements(ifc_file, include)
else:
if tool.Ifc.get_schema() == "IFC2X3":
if ifc_file.schema == "IFC2X3":
base_elements = set(ifc_file.by_type("IfcElement") + ifc_file.by_type("IfcSpatialStructureElement"))
else:
base_elements = set(ifc_file.by_type("IfcElement") + ifc_file.by_type("IfcSpatialElement"))