mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-11 06:18:09 +00:00
fix #4622 - can now reassign IfcWindowStyle and IfcDoorStyle
This commit is contained in:
@@ -185,6 +185,8 @@ class IfcClassData:
|
|||||||
if element:
|
if element:
|
||||||
if element.is_a("IfcOpeningElement") or element.is_a("IfcOpeningStandardCase"):
|
if element.is_a("IfcOpeningElement") or element.is_a("IfcOpeningStandardCase"):
|
||||||
return False
|
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():
|
for product in cls.ifc_products():
|
||||||
if element.is_a(product[0]):
|
if element.is_a(product[0]):
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user