Files
IfcOpenShell/src/ifcopenshell-python/ifcopenshell/api/library/add_library.py
T

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

15 lines
404 B
Python
Raw Normal View History

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"])