mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Minor fix to IFCCSV when exporting non-existant attributes
This commit is contained in:
@@ -143,9 +143,10 @@ class IfcSelectorParser():
|
||||
class IfcAttributeExtractor():
|
||||
@staticmethod
|
||||
def get_element_key(element, key):
|
||||
if '.' not in key \
|
||||
and hasattr(element, key):
|
||||
if hasattr(element, key):
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user