From 6ce0deeb63218f6192223bfbfd045e845758c6e9 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Sun, 26 Feb 2023 11:25:39 +1100 Subject: [PATCH] Fix #2808. Bug where you couldn't assign element types in IFC4X3. --- src/blenderbim/blenderbim/bim/module/root/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blenderbim/blenderbim/bim/module/root/data.py b/src/blenderbim/blenderbim/bim/module/root/data.py index e5afccc165..fc72d15a32 100644 --- a/src/blenderbim/blenderbim/bim/module/root/data.py +++ b/src/blenderbim/blenderbim/bim/module/root/data.py @@ -77,7 +77,7 @@ class IfcClassData: declaration = tool.Ifc.schema().declaration_by_name(ifc_product) declarations = ifcopenshell.util.schema.get_subtypes(declaration) names = [d.name() for d in declarations] - if ifc_product == "IfcElementType": + if ifc_product == "IfcElementType" and tool.Ifc.get_schema() in ("IFC2X3", "IFC4"): names.extend(("IfcDoorStyle", "IfcWindowStyle")) version = tool.Ifc.get_schema() return [(c, c, (get_entity_doc(version, c) or {}).get("description", "")) for c in sorted(names)]