mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
@@ -74,11 +74,13 @@ 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")
|
||||||
types += ifc_file.by_type("IfcSpatialElementType")
|
if tool.Ifc.get_schema() == "IFC2X3":
|
||||||
types += ifc_file.by_type("IfcTypeProduct", include_subtypes=False)
|
|
||||||
if not tool.Ifc.get_schema().startswith("IFC4X3"):
|
|
||||||
types += ifc_file.by_type("IfcWindowStyle")
|
types += ifc_file.by_type("IfcWindowStyle")
|
||||||
types += ifc_file.by_type("IfcDoorStyle")
|
types += ifc_file.by_type("IfcDoorStyle")
|
||||||
|
types += ifc_file.by_type("IfcSpatialStructureElementType")
|
||||||
|
else:
|
||||||
|
types += ifc_file.by_type("IfcSpatialElementType")
|
||||||
|
types += ifc_file.by_type("IfcTypeProduct", include_subtypes=False)
|
||||||
return types
|
return types
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user