Files
IfcOpenShell/src/ifcopenshell-python/ifcopenshell/api/structural/edit_structural_load.py
T

14 lines
422 B
Python

class Usecase:
def __init__(self, file, **settings):
self.file = file
self.settings = {
"structural_load": 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["structural_load"], name, value)