You can now assign task successor and predecessors. Sweet. Thanks myoualid!

This commit is contained in:
Dion Moult
2021-04-19 13:09:00 +10:00
parent d2d4112724
commit 8f0e67a35b
8 changed files with 138 additions and 52 deletions
@@ -76,6 +76,10 @@ class Data:
data = task.get_info()
del data["OwnerHistory"]
data["RelatedObjects"] = []
data["IsPredecessorTo"] = []
data["IsSuccessorFrom"] = []
for rel in task.IsNestedBy:
[data["RelatedObjects"].append(o.id()) for o in rel.RelatedObjects if o.is_a("IfcTask")]
[data["IsPredecessorTo"].append(rel.RelatedProcess.id()) for rel in task.IsPredecessorTo or []]
[data["IsSuccessorFrom"].append(rel.RelatingProcess.id()) for rel in task.IsSuccessorFrom or []]
cls.tasks[task.id()] = data