Goal: For a solved result, access the nodal/elemental values and unit label.
Code:
Model=ExtAPI.DataModel.Project.Model #select the result object on the tree result=Tree.FirstActiveObject #First result item can also be accessed with result=Model.Analyses[0].Solution.Children[1] #Plot the nodal/elemental values using PlotData print("The values for " + result.Name + " is") result.PlotData #For accessing result, with column name (“Values”) result.PlotData["Values"] #For accessing values on the 5th row result.PlotData["Values"][4] #Array starts at 0 #For accessing result value components result.PlotData.Dependents #For accessing node/element IDs result.PlotData.Independents #To get the unit label for the values result.PlotData["Values"].Unit