mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
You can now assign parameterized profiles to material profiles. Thanks Jesusbill!
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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
|
||||
Reference in New Issue
Block a user