Files
IfcOpenShell/src/ifcopenshell-python/ifcopenshell/api/sequence/data.py
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
378 B
Python
Raw Normal View History

2021-02-17 22:54:11 +11:00
class Data:
is_loaded = False
tasks = {}
@classmethod
def purge(cls):
cls.is_loaded = False
cls.tasks = {}
@classmethod
def load(cls, file):
2021-02-17 22:54:11 +11:00
cls.tasks = {}
for task in file.by_type("IfcTask"):
2021-02-17 22:54:11 +11:00
cls.tasks[task.id()] = {"Name": task.Name, "Identification": task.Identification or ""}
cls.is_loaded=True