ifcopenshell.api.run to use explicit kwargs instead of unpacking

This commit is contained in:
Andrej
2025-06-10 11:02:54 +05:00
parent a37d46ca3d
commit 1608677d40
52 changed files with 118 additions and 147 deletions
@@ -75,7 +75,7 @@ class Usecase:
self.file, representation=self.settings["representation"]
)
self.assign_product_representation(element, mapped_representation)
ifcopenshell.api.owner.update_owner_history(self.file, **{"element": self.settings["product"]})
ifcopenshell.api.owner.update_owner_history(self.file, element=self.settings["product"])
def assign_product_representation(
self, product: ifcopenshell.entity_instance, representation: ifcopenshell.entity_instance
@@ -101,7 +101,7 @@ class Usecase:
new_placement.PlacementRelTo = placement_rel_to
self.settings["product"].ObjectPlacement = new_placement
ifcopenshell.api.owner.update_owner_history(self.file, **{"element": self.settings["product"]})
ifcopenshell.api.owner.update_owner_history(self.file, element=self.settings["product"])
for settings in children_settings:
self.settings = settings