Files
IfcOpenShell/src/ifcopenshell-python/ifcopenshell/api/style/edit_presentation_style.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-01-06 17:57:24 +11:00
class Usecase:
def __init__(self, file, **settings):
2021-01-06 17:57:24 +11:00
self.file = file
self.settings = {"style": None, "attributes": {}}
2021-01-06 17:57:24 +11:00
for key, value in settings.items():
self.settings[key] = value
def execute(self):
for name, value in self.settings["attributes"].items():
setattr(self.settings["style"], name, value)