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

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

18 lines
398 B
Python
Raw Normal View History

class Data:
is_loaded = False
profiles = {}
@classmethod
def purge(cls):
cls.is_loaded = False
cls.profiles = {}
@classmethod
def load(cls, file):
if not file:
return
cls.profiles = {}
for profile in file.by_type("IfcProfileDef"):
cls.profiles[profile.id()] = profile.get_info()
cls.is_loaded = True