Integrate ifcgroups with selector

This commit is contained in:
Vukas Pajic
2022-07-21 16:10:10 +02:00
committed by GitHub
parent f1e0375b6a
commit 29a4f78689
11 changed files with 91 additions and 13 deletions
@@ -24,7 +24,8 @@ class Usecase:
def __init__(self, file, **settings):
self.file = file
self.settings = {
"Name": "Unnamed"
"Name": "Unnamed",
"Description": "",
}
for key, value in settings.items():
self.settings[key] = value
@@ -36,5 +37,6 @@ class Usecase:
"GlobalId": ifcopenshell.guid.new(),
"OwnerHistory": ifcopenshell.api.run("owner.create_owner_history", self.file),
"Name": self.settings["Name"],
"Description": self.settings["Description"],
}
)