Files
IfcOpenShell/src/ifcopenshell-python/ifcopenshell/api/material/edit_layer_usage.py
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
368 B
Python
Raw Normal View History

2021-07-17 17:00:43 +10:00
class Usecase:
def __init__(self, file, **settings):
self.file = file
self.settings = {"usage": 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["usage"], name, value)