diff --git a/src/blenderbim/blenderbim/bim/module/model/data.py b/src/blenderbim/blenderbim/bim/module/model/data.py index e9e7747649..336cd28b02 100644 --- a/src/blenderbim/blenderbim/bim/module/model/data.py +++ b/src/blenderbim/blenderbim/bim/module/model/data.py @@ -191,12 +191,13 @@ class AuthoringData: def ifc_classes(cls): results = [] classes = { - e.is_a() - for e in tool.Ifc.get().by_type("IfcElementType") - + tool.Ifc.get().by_type("IfcDoorStyle") - + tool.Ifc.get().by_type("IfcWindowStyle") - + tool.Ifc.get().by_type("IfcSpaceType") + e.is_a() for e in (tool.Ifc.get().by_type("IfcElementType") + tool.Ifc.get().by_type("IfcSpaceType")) } + + if tool.Ifc.get_schema() in ("IFC2X3", "IFC4"): + classes.update( + {e.is_a() for e in (tool.Ifc.get().by_type("IfcDoorStyle") + tool.Ifc.get().by_type("IfcWindowStyle"))} + ) results.extend([(c, c, "") for c in sorted(classes)]) return results