From a461281b1e2d82bf2c7edd7e6122ee23a4f62b89 Mon Sep 17 00:00:00 2001 From: Richard Brice <37087370+RickBrice@users.noreply.github.com> Date: Mon, 14 Jul 2025 11:09:02 -0700 Subject: [PATCH] Fixes problem moving alignment representation from parent to child alignment. Forgot to assign the ObjectPlacement --- .../ifcopenshell/api/alignment/add_vertical_layout.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ifcopenshell-python/ifcopenshell/api/alignment/add_vertical_layout.py b/src/ifcopenshell-python/ifcopenshell/api/alignment/add_vertical_layout.py index a537ab6843..6a388ff9d0 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/alignment/add_vertical_layout.py +++ b/src/ifcopenshell-python/ifcopenshell/api/alignment/add_vertical_layout.py @@ -61,6 +61,7 @@ def _move_vertical_layout_to_child_alignment( if representation.RepresentationIdentifier == "Axis" and representation.RepresentationType == "Curve3D": ifcopenshell.api.geometry.unassign_representation(file, parent_alignment, representation) ifcopenshell.api.geometry.assign_representation(file, child_alignment, representation) + child_alignment.ObjectPlacement = parent_alignment.ObjectPlacement break