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

11 lines
394 B
Python

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