mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
16 lines
429 B
Python
16 lines
429 B
Python
import ifcopenshell.api
|
|
|
|
|
|
class Usecase:
|
|
def __init__(self, file, **settings):
|
|
self.file = file
|
|
self.settings = {
|
|
"name": None,
|
|
"ifc_class": "IfcStructuralLoadLinearForce",
|
|
}
|
|
for key, value in settings.items():
|
|
self.settings[key] = value
|
|
|
|
def execute(self):
|
|
return self.file.create_entity(self.settings["ifc_class"], Name=self.settings["name"])
|