New basic UI to view tasks in an IFC file

This commit is contained in:
Dion Moult
2021-02-17 22:54:11 +11:00
parent 52691b7ee5
commit 6bcfa5946f
8 changed files with 162 additions and 8 deletions
@@ -0,0 +1,18 @@
from blenderbim.bim.ifc import IfcStore
class Data:
is_loaded = False
tasks = {}
@classmethod
def purge(cls):
cls.is_loaded = False
cls.tasks = {}
@classmethod
def load(cls):
cls.tasks = {}
for task in IfcStore.get_file().by_type("IfcTask"):
cls.tasks[task.id()] = {"Name": task.Name, "Identification": task.Identification or ""}
cls.is_loaded=True