mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 18:43:26 +00:00
ifcopenshell.api.run to use explicit kwargs instead of unpacking
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user