mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
Fix #3021. IfcSpatialElements are included in drawings by default.
This commit is contained in:
@@ -1338,7 +1338,10 @@ class Drawing(blenderbim.core.tool.Drawing):
|
|||||||
if include:
|
if include:
|
||||||
elements = set(ifcopenshell.util.selector.Selector.parse(ifc_file, include))
|
elements = set(ifcopenshell.util.selector.Selector.parse(ifc_file, include))
|
||||||
else:
|
else:
|
||||||
elements = set(ifc_file.by_type("IfcElement"))
|
if tool.Ifc.get_schema() == "IFC2X3":
|
||||||
|
elements = set(ifc_file.by_type("IfcElement") + ifc_file.by_type("IfcSpatialStructureElement"))
|
||||||
|
else:
|
||||||
|
elements = set(ifc_file.by_type("IfcElement") + ifc_file.by_type("IfcSpatialElement"))
|
||||||
annotations = tool.Drawing.get_group_elements(tool.Drawing.get_drawing_group(drawing))
|
annotations = tool.Drawing.get_group_elements(tool.Drawing.get_drawing_group(drawing))
|
||||||
elements.update(annotations)
|
elements.update(annotations)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user