From cb551e1248d4ce6597b6157a7c1ed465207e4daa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Perdig=C3=A3o?= Date: Tue, 19 Aug 2025 23:08:43 -0300 Subject: [PATCH] Fix issue with creating walls from slabs in IFC2X3 files. Related to #6963 --- src/bonsai/bonsai/bim/module/model/wall.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bonsai/bonsai/bim/module/model/wall.py b/src/bonsai/bonsai/bim/module/model/wall.py index d850670439..3394aa2b05 100644 --- a/src/bonsai/bonsai/bim/module/model/wall.py +++ b/src/bonsai/bonsai/bim/module/model/wall.py @@ -891,7 +891,8 @@ class DumbWallGenerator: elevation = self.container_obj.location.z representation = ifcopenshell.util.representation.get_representation(slab, "Model", "Body", "MODEL_VIEW") extrusion = tool.Model.get_extrusion(representation) - polyline_points = extrusion.SweptArea.OuterCurve.Points.CoordList + builder = ifcopenshell.util.shape_builder.ShapeBuilder(tool.Ifc.get()) + polyline_points = builder.get_polyline_coords(extrusion.SweptArea.OuterCurve) polyline_points = [[(v * self.unit_scale) for v in p] for p in polyline_points] polyline_points = [slab_obj.matrix_world @ Vector((p[0], p[1], elevation)) for p in polyline_points] if not tool.Cad.is_counter_clockwise_order(polyline_points[0], polyline_points[1], polyline_points[2]):