Allow text annotation formatting functions

This commit is contained in:
Dion Moult
2020-05-06 21:10:39 +10:00
parent 4ed3517c47
commit 0af8902dde
3 changed files with 14 additions and 12 deletions
+7 -10
View File
@@ -176,16 +176,13 @@ class IfcAttributeExtractor():
return getattr(element, key)
elif '.' not in key:
return None
elif key[0:3] == 'Qto':
qto_name, prop = key.split('.')
qto = IfcAttributeExtractor.get_element_qto(element, qto_name)
if qto:
return IfcAttributeExtractor.get_qto_property(qto, prop)
else:
pset_name, prop = key.split('.')
pset = IfcAttributeExtractor.get_element_pset(element, pset_name)
if pset:
return IfcAttributeExtractor.get_pset_property(pset, prop)
pset_name, prop = key.split('.')
pset = IfcAttributeExtractor.get_element_pset(element, pset_name)
if pset:
return IfcAttributeExtractor.get_pset_property(pset, prop)
qto = IfcAttributeExtractor.get_element_qto(element, pset_name)
if qto:
return IfcAttributeExtractor.get_qto_property(qto, prop)
return None
@staticmethod