Files
IfcOpenShell/src/ifcopenshell-python/ifcopenshell/api/style/add_style.py
T

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

11 lines
394 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 = {"name": None}
2021-01-06 17:57:24 +11:00
for key, value in settings.items():
self.settings[key] = value
def execute(self):
# Name is filled out because Revit treats this incorrectly as the material name
return self.file.createIfcSurfaceStyle(self.settings["name"], "BOTH")