From 9cc683ea6ebc45562619105e9a468a6dbca86368 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Mon, 14 Mar 2022 20:39:39 +1100 Subject: [PATCH] Fix bug where ownership history was not tracked on document association. --- .../ifcopenshell/api/document/assign_document.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/document/assign_document.py b/src/ifcopenshell-python/ifcopenshell/api/document/assign_document.py index ff1f416eb5..c43c2afd3b 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/document/assign_document.py +++ b/src/ifcopenshell-python/ifcopenshell/api/document/assign_document.py @@ -56,7 +56,7 @@ class Usecase: "IfcRelAssociatesDocument", **{ "GlobalId": ifcopenshell.guid.new(), - # TODO: owner history + "OwnerHistory": ifcopenshell.api.run("owner.create_owner_history", self.file), "RelatingDocument": self.settings["document"], } )