Dear support,
I would like to know if there is an method to parse or get the hierarchical structure of a multi block data set in python in a dictionary, XML or similar way which is quite useful for looping over the blocks. At the moment I usually do something like this:
# While loop to scan the hierarchy
i = 0
blk_names = []
while (blk_name := MyDataSet.GetDataInformation().DataInformation.GetBlockName(i)): # Stops when finds the same name (empty fields like '' in this case)
blk_name.append(blk_name.lstrip('/'))
i += 1
So I can have a list that I can parse later on using keywords. Is there any better way to do this? I feel this is quite primitive ![]()