diff --git a/src/ifcopenshell-python/ifcopenshell/api/spatial/assign_container.py b/src/ifcopenshell-python/ifcopenshell/api/spatial/assign_container.py index 6daecafa29..4a27619176 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/spatial/assign_container.py +++ b/src/ifcopenshell-python/ifcopenshell/api/spatial/assign_container.py @@ -41,7 +41,7 @@ class Usecase: aggregate = ifcopenshell.util.element.get_aggregate(self.settings["product"]) if aggregate: ifcopenshell.api.run( - "aggregate.unassign_object", self.file, relating_object=aggregate, product=self.settings["product"] + "aggregate.unassign_object", self.file, product=self.settings["product"] ) if contained_in_structure: