mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 10:06:47 +00:00
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:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user