Update to IfcResources panel and authoring subtypes of IfcConstructionResource with ifcopenshell.api

This commit is contained in:
bosonprojets
2021-04-24 23:34:38 +00:00
parent 9584687fcf
commit 6107c39c1c
12 changed files with 170 additions and 39 deletions
@@ -0,0 +1,10 @@
class Usecase:
def __init__(self, file, **settings):
self.file = file
self.settings = {"resource": None, "attributes": {}}
for key, value in settings.items():
self.settings[key] = value
def execute(self):
for name, value in self.settings["attributes"].items():
setattr(self.settings["resource"], name, value)