gave access to attr definitions

This commit is contained in:
iLLiCiTiT 2021-07-13 11:14:45 +02:00
parent aaafbf8eeb
commit 5f64741b6d

View file

@ -36,6 +36,10 @@ class FamilyAttributeValues(dict):
self._last_data = copy.deepcopy(values)
@property
def attr_defs(self):
return self._attr_defs
class AvalonInstance:
"""Instance entity with data that will be stored to workfile.
@ -97,6 +101,10 @@ class AvalonInstance:
def data(self):
return self._data
@property
def family_attribute_defs(self):
return self._data["family_attributes"].attr_defs
def change_order(self, keys_order):
data = collections.OrderedDict()
for key in keys_order: