Support owner histories for a bunch more usecases. About half done.

This commit is contained in:
Dion Moult
2021-03-26 10:39:07 +11:00
parent d4736710a5
commit 074a8c287f
7 changed files with 23 additions and 2 deletions
@@ -1,6 +1,7 @@
import numpy as np
import ifcopenshell.util.element
import ifcopenshell.util.placement
import ifcopenshell.api.owner.update_owner_history as update_owner_history
class Usecase:
@@ -46,6 +47,8 @@ class Usecase:
ifcopenshell.util.element.remove_deep(self.file, old)
self.settings["product"].ObjectPlacement = placement
update_owner_history.Usecase(self.file, {"element": self.settings["product"]}).execute()
for settings in dependent_objects:
self.settings = settings
self.execute()