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
@@ -83,6 +83,11 @@ def get_material(element):
return relationship.RelatingMaterial
def get_container(element):
if hasattr(element, "ContainedInStructure") and element.ContainedInStructure:
return element.ContainedInStructure[0].RelatingStructure
def replace_attribute(element, old, new):
for i, attribute in enumerate(element):
if attribute == old: