mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 09:32:37 +00:00
WIP port unit assignment to partial editing. See #1222.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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
|
||||
Reference in New Issue
Block a user