test
from paraview.simple import * reader = ExodusIIReader(FileName=['C:\\Users\\paul\\.........\\exodusfile.e']) def getBlockIndices(compositeDataInformation, index=0): localDict = {} if compositeDataInformation.GetDataIsMultiPiece(): index += compositeDataInformation.GetNumberOfChildren() else: if compositeDataInformation.GetDataIsComposite(): for i in range(compositeDataInformation.GetNumberOfChildren()): index += 1 _blockName = compositeDataInformation.GetName(i) localDict[_blockName] = index leafDict, index = getBlockIndices(compositeDataInformation.GetDataInformation(i).GetCompositeDataInformation(), index) localDict.update(leafDict) return localDict, index Indices=getBlockIndices(reader.GetDataInformation().DataInformation.GetCompositeDataInformation()) print(Indices)
##############################
QQ 3087438119