mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
20 lines
446 B
Python
20 lines
446 B
Python
from blenderbim.bim.ifc import IfcStore
|
|
|
|
|
|
class Data:
|
|
is_loaded = False
|
|
units = {}
|
|
|
|
@classmethod
|
|
def load(cls):
|
|
file = IfcStore.get_file()
|
|
if not file:
|
|
return
|
|
unit_assignment = file.by_type("IfcUnitAssignment")
|
|
if not unit_assignment:
|
|
return
|
|
for unit in unit_assignment[0].Units:
|
|
pass
|
|
# TODO: implement along with UI
|
|
cls.is_loaded = True
|