Fix bug where you could not assign a related window or door type.

This commit is contained in:
Dion Moult
2021-03-09 12:51:18 +11:00
parent aceb2140ad
commit 1f68c3f612
2 changed files with 13 additions and 1 deletions
@@ -20,7 +20,7 @@ with open(filepath) as fp:
entity = line[len("ENTITY ") : -1]
elif "END_ENTITY" in line:
is_in_where_rule = False
elif entity and "CorrectTypeAssigned" in line:
elif entity and ("CorrectTypeAssigned" in line or "CorrectStyleAssigned" in line):
is_in_where_rule = True
elif entity and is_in_where_rule and "IN TYPEOF" in line and "RelatingType" in line:
type_class = line.split("'")[1].split(".")[1]
@@ -89,6 +89,9 @@
"IfcDistributionChamberElement": [
"IFCDISTRIBUTIONCHAMBERELEMENTTYPE"
],
"IfcDoor": [
"IFCDOORTYPE"
],
"IfcDuctFitting": [
"IFCDUCTFITTINGTYPE"
],
@@ -302,12 +305,18 @@
"IfcWasteTerminal": [
"IFCWASTETERMINALTYPE"
],
"IfcWindow": [
"IFCWINDOWTYPE"
],
"IfcBeamStandardCase": [
"IFCBEAMTYPE"
],
"IfcColumnStandardCase": [
"IFCCOLUMNTYPE"
],
"IfcDoorStandardCase": [
"IFCDOORTYPE"
],
"IfcMemberStandardCase": [
"IFCMEMBERTYPE"
],
@@ -325,5 +334,8 @@
],
"IfcWallStandardCase": [
"IFCWALLTYPE"
],
"IfcWindowStandardCase": [
"IFCWINDOWTYPE"
]
}