Collection assignment is now synced on export, so you don't need to manually manage your tree

This commit is contained in:
Dion Moult
2021-04-19 16:08:57 +10:00
parent 8f0e67a35b
commit 44bbd17d97
2 changed files with 37 additions and 2 deletions
@@ -88,6 +88,11 @@ def get_container(element):
return element.ContainedInStructure[0].RelatingStructure
def get_aggregate(element):
if hasattr(element, "Decomposes") and element.Decomposes:
return element.Decomposes[0].RelatingObject
def replace_attribute(element, old, new):
for i, attribute in enumerate(element):
if attribute == old: