Fix #5841. Incorrect axis usage when generating LAYER2 elements from polyline.

This commit is contained in:
Dion Moult
2025-01-16 23:19:11 +11:00
parent aeba2885e4
commit a63f67ad32
2 changed files with 2 additions and 2 deletions
@@ -188,10 +188,8 @@ class DumbSlabGenerator:
pset = ifcopenshell.api.run("pset.add_pset", self.file, product=element, name="EPset_Parametric")
ifcopenshell.api.run("pset.edit_pset", self.file, pset=pset, properties={"Engine": "Bonsai.DumbLayer3"})
material = ifcopenshell.util.element.get_material(element)
material.LayerSetDirection = "AXIS3"
obj.select_set(True)
return obj
@@ -805,6 +805,8 @@ class DumbWallGenerator:
)
pset = ifcopenshell.api.run("pset.add_pset", self.file, product=element, name="EPset_Parametric")
ifcopenshell.api.run("pset.edit_pset", self.file, pset=pset, properties={"Engine": "Bonsai.DumbLayer2"})
material = ifcopenshell.util.element.get_material(element)
material.LayerSetDirection = "AXIS2"
obj.select_set(True)
return obj