2706RE: [Tecplot_Talk] Get maximum value of a single zone
- Sep 9, 2008
Yep. I had to switch from Var to Zone; that’s what I get from programming from memory and not testing it. Sorry for the confusion. With respect to the “Value String” you should not be placing text in there. Only the value of the string. So VarMin3 is |MinC| in the macro when variable 3 is assigned to the contour variable of the plot. By default, C1 is the contour variable, and that’s what MinC returns. Look at the Scripting manual to determine the internal macro variables like the MinC and MaxC; MaxVar[nnn] is not a valid construct in the macro. Hence, Tecplot sees this as a string to assign to a valuestring.
BTW, you can also change the format by including %2.2f at the end of VarMin3 such as &(AuxZone:VarMin3%.2f) and the string will be reduced to two significant digits on the right hand side of the decimal. That way you’re not stuck with the 12 significant digits. It becomes an issue if you are loading in 32-bit data. Tecplot uses double precision for everything inside. So if your data is 32-bit, you need to be cautious about the number of significant digits you display on a plot.
The formatting of text can be found in the scripting manual and the User’s Manual.
- << Previous post in topic