fix #7153: Include IfcSpatialElementTypes in purge_unused_objects(object_type='TYPE')

This commit is contained in:
Ryan Schultz
2026-01-03 16:04:58 -06:00
parent c20ed44a0f
commit 56861b9403
+1 -1
View File
@@ -74,7 +74,7 @@ class Type(bonsai.core.tool.Type):
def get_model_types(cls) -> list[ifcopenshell.entity_instance]:
ifc_file = tool.Ifc.get()
types = ifc_file.by_type("IfcElementType")
# exclude IfcSpatialElementType
types += ifc_file.by_type("IfcSpatialElementType")
types += ifc_file.by_type("IfcTypeProduct", include_subtypes=False)
if not tool.Ifc.get_schema().startswith("IFC4X3"):
types += ifc_file.by_type("IfcWindowStyle")