You can now export container data from IFCCSV

This commit is contained in:
Dion Moult
2021-01-22 15:52:48 +11:00
parent 404a6c244c
commit 84959d1cf8
3 changed files with 19 additions and 6 deletions
@@ -227,6 +227,14 @@ class Selector:
except:
return
key = ".".join(key.split(".")[1:])
elif "." in key and key.split(".")[0] == "container":
try:
element = ifcopenshell.util.element.get_container(element)
if not element:
return None
except:
return
key = ".".join(key.split(".")[1:])
info = element.get_info()
if key in info:
return info[key]