mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Refactor ownership history system to be simpler and just a usecase. See #1399.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import ifcopenshell
|
||||
from ifcopenshell.api.owner.api import create_owner_history
|
||||
import ifcopenshell.api.owner.create_owner_history as create_owner_history
|
||||
|
||||
|
||||
class Usecase:
|
||||
@@ -16,7 +16,7 @@ class Usecase:
|
||||
def execute(self):
|
||||
element = self.file.create_entity(self.settings["ifc_class"], **{
|
||||
"GlobalId": ifcopenshell.guid.new(),
|
||||
"OwnerHistory": create_owner_history()
|
||||
"OwnerHistory": create_owner_history.Usecase(self.file).execute()
|
||||
})
|
||||
element.Name = self.settings["name"] or None
|
||||
if self.settings["predefined_type"]:
|
||||
|
||||
Reference in New Issue
Block a user