From a360bac4c3ca0138becac7acf5fd8e2ed1232be8 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Thu, 20 Jul 2023 19:14:12 +1000 Subject: [PATCH] You can now explicitly create new IfcTypeProducts. --- src/blenderbim/blenderbim/bim/module/root/data.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/blenderbim/blenderbim/bim/module/root/data.py b/src/blenderbim/blenderbim/bim/module/root/data.py index d9b250dc70..b5463f3194 100644 --- a/src/blenderbim/blenderbim/bim/module/root/data.py +++ b/src/blenderbim/blenderbim/bim/module/root/data.py @@ -79,8 +79,10 @@ 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" and tool.Ifc.get_schema() in ("IFC2X3", "IFC4"): - names.extend(("IfcDoorStyle", "IfcWindowStyle")) + if ifc_product == "IfcElementType": + names.append("IfcTypeProduct") + if tool.Ifc.get_schema() in ("IFC2X3", "IFC4"): + names.extend(("IfcDoorStyle", "IfcWindowStyle")) if ifc_product == "IfcElement": names.remove("IfcOpeningElement") if tool.Ifc.get_schema() == "IFC4":