You are on page 1of 1

5 Working with Results Files

#Calling of the object which results are from interest


line=app.GetCalcRelevantObjects(’Line.ElmLne’)

#Get number of rows and columns


NrRow=app.ResGetVariableCount(res)
NrCol=app.ResGetValueCount(res,0)

#print results
app.PrintPlain(’ElmRes has %i rows and %i Columns’ %(NrRow,NrCol))

#Get index of variable of interest


ColIndex=app.ResGetIndex(res,line[0],’m:Ikss:bus1’)

#print results
for i in range(NrRow):
value=app.ResGetData(res,i,ColIndex)
app.PrintPlain(value)

Python Tutorial (DIgSILENT Technical Documentation) 33

You might also like