A whole bunch of new usecases for managing IFC library information and references

This commit is contained in:
Dion Moult
2021-11-16 18:30:23 +11:00
parent 41486ba08a
commit 4617d9f234
16 changed files with 246 additions and 0 deletions
@@ -0,0 +1,14 @@
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"])