Fix #2924. IfcElements default to a null predefined type so they can inherit where possible.

This commit is contained in:
Dion Moult
2023-04-03 13:54:25 +10:00
parent c947ccb8be
commit f291345111
2 changed files with 5 additions and 3 deletions
@@ -100,7 +100,7 @@ class Usecase:
return element
def handle_2x3_defaults(self, element):
if element.is_a("IfcElement") or element.is_a("IfcElementType"):
if element.is_a("IfcElementType"):
if hasattr(element, "PredefinedType") and not element.PredefinedType:
element.PredefinedType = "NOTDEFINED"
@@ -117,7 +117,7 @@ class Usecase:
element.Sizeable = False
def handle_4_defaults(self, element):
if element.is_a("IfcElement") or element.is_a("IfcElementType"):
if element.is_a("IfcElementType"):
if hasattr(element, "PredefinedType") and not element.PredefinedType:
element.PredefinedType = "NOTDEFINED"