diff --git a/src/ifcopenshell-python/ifcopenshell/api/spatial/assign_container.py b/src/ifcopenshell-python/ifcopenshell/api/spatial/assign_container.py index 0312748c45..fe46877cae 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/spatial/assign_container.py +++ b/src/ifcopenshell-python/ifcopenshell/api/spatial/assign_container.py @@ -1,5 +1,6 @@ import ifcopenshell import ifcopenshell.api +import ifcopenshell.util.placement class Usecase: @@ -43,3 +44,11 @@ class Usecase: "RelatingStructure": self.settings["relating_structure"], } ) + + if getattr(self.settings["product"], "ObjectPlacement", None): + ifcopenshell.api.run( + "geometry.edit_object_placement", + self.file, + product=self.settings["product"], + matrix=ifcopenshell.util.placement.get_local_placement(self.settings["product"].ObjectPlacement), + )