mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
fix #7153: Include IfcSpatialElementTypes in purge_unused_objects(object_type='TYPE')
This commit is contained in:
@@ -74,7 +74,7 @@ class Type(bonsai.core.tool.Type):
|
|||||||
def get_model_types(cls) -> list[ifcopenshell.entity_instance]:
|
def get_model_types(cls) -> list[ifcopenshell.entity_instance]:
|
||||||
ifc_file = tool.Ifc.get()
|
ifc_file = tool.Ifc.get()
|
||||||
types = ifc_file.by_type("IfcElementType")
|
types = ifc_file.by_type("IfcElementType")
|
||||||
# exclude IfcSpatialElementType
|
types += ifc_file.by_type("IfcSpatialElementType")
|
||||||
types += ifc_file.by_type("IfcTypeProduct", include_subtypes=False)
|
types += ifc_file.by_type("IfcTypeProduct", include_subtypes=False)
|
||||||
if not tool.Ifc.get_schema().startswith("IFC4X3"):
|
if not tool.Ifc.get_schema().startswith("IFC4X3"):
|
||||||
types += ifc_file.by_type("IfcWindowStyle")
|
types += ifc_file.by_type("IfcWindowStyle")
|
||||||
|
|||||||
Reference in New Issue
Block a user