mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-18 03:19:53 +00:00
Refactor ownership history system to be simpler and just a usecase. See #1399.
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
class Usecase:
|
||||
def __init__(self, file):
|
||||
def __init__(self, file, settings={}):
|
||||
self.file = file
|
||||
self.settings = {
|
||||
"Identification": "APTR",
|
||||
"Name": "Aperture Science",
|
||||
}
|
||||
for key, value in settings.items():
|
||||
self.settings[key] = value
|
||||
|
||||
def execute(self):
|
||||
self.file.createIfcOrganization("APTR", "Aperture Science")
|
||||
return self.file.create_entity("IfcOrganization", **self.settings)
|
||||
|
||||
Reference in New Issue
Block a user