users can now add selection to ifcgroup

This commit is contained in:
Vukas Pajic
2022-07-20 13:48:26 +02:00
parent ce6d4ea59a
commit df0c136b6c
4 changed files with 37 additions and 3 deletions
@@ -23,7 +23,9 @@ import ifcopenshell.api
class Usecase:
def __init__(self, file, **settings):
self.file = file
self.settings = {}
self.settings = {
"Name": "Unnamed"
}
for key, value in settings.items():
self.settings[key] = value
@@ -33,6 +35,6 @@ class Usecase:
**{
"GlobalId": ifcopenshell.guid.new(),
"OwnerHistory": ifcopenshell.api.run("owner.create_owner_history", self.file),
"Name": "Unnamed",
"Name": self.settings["Name"],
}
)