Files
IfcOpenShell/src/ifcopenshell-python/ifcopenshell/api/constraint/add_objective.py
T

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

16 lines
430 B
Python
Raw Normal View History

2021-01-23 16:32:52 +11:00
import ifcopenshell
class Usecase:
def __init__(self, file, **settings):
2021-01-23 16:32:52 +11:00
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"
})