mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 18:16:20 +00:00
19 lines
429 B
Python
19 lines
429 B
Python
|
|
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
|