UI clean up for work plans and code review for assign schedules to plan

This commit is contained in:
Dion Moult
2021-04-28 17:59:57 +10:00
parent fa52ed6dbc
commit 00694854af
6 changed files with 93 additions and 96 deletions
@@ -41,6 +41,9 @@ class Data:
data["StartTime"] = ifcopenshell.util.date.ifc2datetime(data["StartTime"])
if data["FinishTime"]:
data["FinishTime"] = ifcopenshell.util.date.ifc2datetime(data["FinishTime"])
data["IsDecomposedBy"] = []
for rel in work_plan.IsDecomposedBy:
data["IsDecomposedBy"].extend([o.id() for o in rel.RelatedObjects])
cls.work_plans[work_plan.id()] = data
@classmethod
@@ -1,3 +1,6 @@
import ifcopenshell
class Usecase:
def __init__(self, file, **settings):
self.file = file