mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 03:14:23 +00:00
15 lines
404 B
Python
15 lines
404 B
Python
|
|
import ifcopenshell
|
||
|
|
import ifcopenshell.util.schema
|
||
|
|
import ifcopenshell.util.date
|
||
|
|
|
||
|
|
|
||
|
|
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):
|
||
|
|
return self.file.create_entity("IfcLibraryInformation", Name=self.settings["name"])
|