mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-30 03:59:55 +00:00
Fix bug where you could not assign a related window or door type.
This commit is contained in:
@@ -20,7 +20,7 @@ with open(filepath) as fp:
|
|||||||
entity = line[len("ENTITY ") : -1]
|
entity = line[len("ENTITY ") : -1]
|
||||||
elif "END_ENTITY" in line:
|
elif "END_ENTITY" in line:
|
||||||
is_in_where_rule = False
|
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
|
is_in_where_rule = True
|
||||||
elif entity and is_in_where_rule and "IN TYPEOF" in line and "RelatingType" in line:
|
elif entity and is_in_where_rule and "IN TYPEOF" in line and "RelatingType" in line:
|
||||||
type_class = line.split("'")[1].split(".")[1]
|
type_class = line.split("'")[1].split(".")[1]
|
||||||
|
|||||||
@@ -89,6 +89,9 @@
|
|||||||
"IfcDistributionChamberElement": [
|
"IfcDistributionChamberElement": [
|
||||||
"IFCDISTRIBUTIONCHAMBERELEMENTTYPE"
|
"IFCDISTRIBUTIONCHAMBERELEMENTTYPE"
|
||||||
],
|
],
|
||||||
|
"IfcDoor": [
|
||||||
|
"IFCDOORTYPE"
|
||||||
|
],
|
||||||
"IfcDuctFitting": [
|
"IfcDuctFitting": [
|
||||||
"IFCDUCTFITTINGTYPE"
|
"IFCDUCTFITTINGTYPE"
|
||||||
],
|
],
|
||||||
@@ -302,12 +305,18 @@
|
|||||||
"IfcWasteTerminal": [
|
"IfcWasteTerminal": [
|
||||||
"IFCWASTETERMINALTYPE"
|
"IFCWASTETERMINALTYPE"
|
||||||
],
|
],
|
||||||
|
"IfcWindow": [
|
||||||
|
"IFCWINDOWTYPE"
|
||||||
|
],
|
||||||
"IfcBeamStandardCase": [
|
"IfcBeamStandardCase": [
|
||||||
"IFCBEAMTYPE"
|
"IFCBEAMTYPE"
|
||||||
],
|
],
|
||||||
"IfcColumnStandardCase": [
|
"IfcColumnStandardCase": [
|
||||||
"IFCCOLUMNTYPE"
|
"IFCCOLUMNTYPE"
|
||||||
],
|
],
|
||||||
|
"IfcDoorStandardCase": [
|
||||||
|
"IFCDOORTYPE"
|
||||||
|
],
|
||||||
"IfcMemberStandardCase": [
|
"IfcMemberStandardCase": [
|
||||||
"IFCMEMBERTYPE"
|
"IFCMEMBERTYPE"
|
||||||
],
|
],
|
||||||
@@ -325,5 +334,8 @@
|
|||||||
],
|
],
|
||||||
"IfcWallStandardCase": [
|
"IfcWallStandardCase": [
|
||||||
"IFCWALLTYPE"
|
"IFCWALLTYPE"
|
||||||
|
],
|
||||||
|
"IfcWindowStandardCase": [
|
||||||
|
"IFCWINDOWTYPE"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user