New system module with UI to browse systems in an IFC.

This commit is contained in:
Dion Moult
2021-07-22 17:40:50 +10:00
parent 1c71af058f
commit 8071e079b3
12 changed files with 476 additions and 2 deletions
@@ -0,0 +1,17 @@
import ifcopenshell
import ifcopenshell.api
class Usecase:
def __init__(self, file, **settings):
self.file = file
self.settings = {}
for key, value in settings.items():
self.settings[key] = value
def execute(self):
return self.file.create_entity("IfcSystem", **{
"GlobalId": ifcopenshell.guid.new(),
"OwnerHistory": ifcopenshell.api.run("owner.create_owner_history", self.file),
"Name": "Unnamed"
})