mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
18 lines
398 B
Python
18 lines
398 B
Python
|
|
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
|