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,4 +1,5 @@
import ifcopenshell
import ifcopenshell.api.owner.create_owner_history as create_owner_history
class Usecase:
@@ -11,6 +12,7 @@ class Usecase:
def execute(self):
self.file.create_entity("IfcRelVoidsElement", **{
"GlobalId": ifcopenshell.guid.new(),
"OwnerHistory": create_owner_history.Usecase(self.file).execute(),
"RelatingBuildingElement": self.settings["element"],
"RelatedOpeningElement": self.settings["opening"]
})