mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 23:19:57 +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:
|
if include:
|
||||||
elements = ifcopenshell.util.selector.filter_elements(ifc_file, include)
|
elements = ifcopenshell.util.selector.filter_elements(ifc_file, include)
|
||||||
else:
|
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"))
|
base_elements = set(ifc_file.by_type("IfcElement") + ifc_file.by_type("IfcSpatialStructureElement"))
|
||||||
else:
|
else:
|
||||||
base_elements = set(ifc_file.by_type("IfcElement") + ifc_file.by_type("IfcSpatialElement"))
|
base_elements = set(ifc_file.by_type("IfcElement") + ifc_file.by_type("IfcSpatialElement"))
|
||||||
|
|||||||
Reference in New Issue
Block a user