mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 23:50:59 +00:00
See #5261. Fix bug when editing parametric stairs (not stair flights) which sets an inapplicable predefined type
This commit is contained in:
@@ -93,7 +93,7 @@ def update_ifc_stair_props(obj):
|
|||||||
props = obj.BIMStairProperties
|
props = obj.BIMStairProperties
|
||||||
ifc_file = tool.Ifc.get()
|
ifc_file = tool.Ifc.get()
|
||||||
|
|
||||||
if tool.Ifc.get_schema() != "IFC2X3":
|
if tool.Ifc.get_schema() != "IFC2X3" and element.is_a("IfcStairFlight"):
|
||||||
element.PredefinedType = "STRAIGHT"
|
element.PredefinedType = "STRAIGHT"
|
||||||
number_of_risers = props.number_of_treads + 1
|
number_of_risers = props.number_of_treads + 1
|
||||||
# update IfcStairFlight properties (seems already deprecated but keep it for now)
|
# update IfcStairFlight properties (seems already deprecated but keep it for now)
|
||||||
|
|||||||
Reference in New Issue
Block a user