mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 18:43:26 +00:00
16 lines
431 B
Python
16 lines
431 B
Python
|
|
import ifcopenshell
|
||
|
|
|
||
|
|
class Usecase:
|
||
|
|
def __init__(self, file, settings={}):
|
||
|
|
self.file = file
|
||
|
|
self.settings = {}
|
||
|
|
for key, value in settings.items():
|
||
|
|
self.settings[key] = value
|
||
|
|
|
||
|
|
def execute(self):
|
||
|
|
return self.file.create_entity("IfcObjective", **{
|
||
|
|
"Name": "Unnamed",
|
||
|
|
"ConstraintGrade": "NOTDEFINED",
|
||
|
|
"ObjectiveQualifier": "NOTDEFINED"
|
||
|
|
})
|