From bb7748cfc8a763b8525b5811334328bf83d83bfd Mon Sep 17 00:00:00 2001 From: Ryan Schultz Date: Tue, 7 May 2024 09:44:22 -0500 Subject: [PATCH] fix #4622 - can now reassign IfcWindowStyle and IfcDoorStyle --- src/blenderbim/blenderbim/bim/module/root/data.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/blenderbim/blenderbim/bim/module/root/data.py b/src/blenderbim/blenderbim/bim/module/root/data.py index 18f7fbffcd..9f9d3a6f91 100644 --- a/src/blenderbim/blenderbim/bim/module/root/data.py +++ b/src/blenderbim/blenderbim/bim/module/root/data.py @@ -185,6 +185,8 @@ class IfcClassData: if element: if element.is_a("IfcOpeningElement") or element.is_a("IfcOpeningStandardCase"): return False + if element.is_a() in ("IfcWindowStyle", "IfcDoorStyle"): #see https://github.com/IfcOpenShell/IfcOpenShell/issues/4622#issuecomment-2095676368 + return True for product in cls.ifc_products(): if element.is_a(product[0]): return True