Added Usecases to assign, edit and unassign Lag Times to the ifcopenshell.api

This commit is contained in:
bosonprojets
2021-04-30 02:21:54 +00:00
parent cdc9180111
commit 2f53e43b90
4 changed files with 56 additions and 0 deletions
@@ -0,0 +1,10 @@
class Usecase:
def __init__(self, file, **settings):
self.file = file
self.settings = {"rel_sequence": 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["rel_sequence"], name, value)