You can now assign summary tasks to a work schedule. Thanks myoualid!

This commit is contained in:
Dion Moult
2021-04-15 10:38:45 +10:00
parent 5dec636584
commit 29b33661d7
7 changed files with 107 additions and 58 deletions
@@ -4,7 +4,14 @@ import ifcopenshell.api
class Usecase:
def __init__(self, file, **settings):
self.file = file
self.settings = {"name": None, "predefined_type": "NOTDEFINED", "is_milestone":False, "identification": "none", "predecessor_to":None, "successor_from":None}
self.settings = {
"name": None,
"predefined_type": "NOTDEFINED",
"is_milestone": False,
"identification": "none",
"predecessor_to": None,
"successor_from": None,
}
for key, value in settings.items():
self.settings[key] = value
@@ -17,4 +24,4 @@ class Usecase:
name=self.settings["name"],
)
task.IsMilestone = self.settings["is_milestone"]
return task
return task