mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-16 02:24:30 +00:00
11 lines
394 B
Python
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")
|