TP Reference Manual
TP Reference Manual
Tecplot 360TM Reference Manual is for use with Tecplot 360TM 2006.
Copyright © 1988-2005 Tecplot, Inc. All rights reserved worldwide. Except for personal use, this manual may not be reproduced, trans-
mitted, transcribed, stored in a retrieval system, or translated in any form, in whole or in part, without the express written permission of
Tecplot, Inc., 3535 Factoria Blvd., Ste 550, Bellevue, Washington, 98006, U.S.A.
The software discussed in this documentation and the documentation itself are furnished under license for utilization and duplication
only according to the license terms. The copyright for the software is held by Tecplot, Inc. Documentation is provided for information
only. It is subject to change without notice. It should not be interpreted as a commitment by Tecplot, Inc. Tecplot, Inc. assumes no liabil-
ity or responsibility for documentation errors or inaccuracies.
Tecplot, Inc.
PO Box 52708
Bellevue, WA 98015-2708 U.S.A.
Tel: 1.800.763.7005 (within the U.S. or Canada), 00 1 (425)653-1200 (internationally)
email: [email protected], [email protected]
Questions, comments or concerns regarding this documentation: [email protected]
For more information, visit http://www.tecplot.com
ENCSA Hierarchical Data Format (HDF) Software Library and Utilities © 1988-1998 The Board of Trustees of the University of Illi-
nois. All rights reserved. Contributors include National Center for Supercomputing Applications (NCSA) at the University of Illinois,
Fortner Software (Windows and Mac), Unidata Program Center (netCDF), The Independent JPEG Group (JPEG), Jean-loup Gailly and
Mark Adler (gzip). Bmptopnm, Netpbm © 1992 David W. Sanderson. Dlcompat © 2002 Jorge Acereda, additions and modifications by
Peter O’Gorman. Ppmtopict © 1990 Ken Yap.
TRADEMARKS
Tecplot®, Tecplot 360TM, PreplotTM, Enjoy the ViewTM, and FramerTM are registered trademarks or trademarks of Tecplot, Inc. in the
United States and other countries.
Encapsulated PostScript, PostScript, Premier are registered trademarks or trademarks of Adobe Systems, Incorporated in the U.S. and/
or other countries. Ghostscript is a registered trademark of Aladdin Enterprises in the U.S. and/or other countries. Linotronic, Helvetica,
Times are registered trademarks or trademarks of Allied Corporation in the U.S. and other countries. AutoCAD, DXF are registered
trademarks or trademarks of Autodesk, Incorporated in the U.S. and other countries. Élan License Manager is a trademark of Élan Com-
puter Group, Incorporated in the U.S. and/or other countries. DEC, Digital, LaserJet, HP-GL, HP-GL/2, PaintJet are registered trade-
marks or trademarks of Hewlett-Packard Company in the U.S. and other countries. X-Designer is a registered trademark or trademark
of Imperial Software Technology in the U.S. and/or other countries. Builder Xcessory is a registered trademark or trademark of Inte-
grated Computer Solutions, Incorporated in the U.S. and other countries. IBM, RS6000, PC/DOS are registered trademarks or trade-
marks of International Business Machines Corporation in the U.S. and/or other countries. Bookman is a registered trademark or
trademark of ITC Corporation in the U.S. and/or other countries. VIP is a registered trademark or trademark of Landmark Graphics
Corporation in the U.S. and/or other countries. X Windows is a registered trademark or trademark of Massachusetts Institute of Tech-
nology in the U.S. and/or other countries. ActiveX, Excel, MS-DOS, Microsoft, Visual Basic, Visual C++, Visual J++, Visual Studio,
Windows, Windows Metafile are registered trademarks or trademarks of Microsoft Corporation in the U.S. and/or other countries. HDF,
NCSA are registered trademarks or trademarks of National Center for Supercomputing Applications in the U.S. and/or other countries.
UNIX, Motif are registered trademarks or trademarks of Open Software Foundation, Incorporated in the U.S. and other countries. Grid-
gen is a registered trademark or trademark of Pointwise, Incorporated in the U.S. and/or other countries. Eclipse, FrontSim are regis-
tered trademarks or trademarks of Schlumberger, Limited in the U.S. and/or other countries. IRIS, IRIX, OpenGL are registered
trademarks or trademarks of Silicon Graphics, Incorporated in the U.S. and/or other countries. Solaris, Sun, Sun Raster are registered
trademarks or trademarks of Sun MicroSystems, Incorporated in the U.S. and/or other countries. All other product names mentioned
herein are trademarks or registered trademarks of their respective owners.
Use, duplication, or disclosure by the U.S. Government is subject to restrictions as set forth in subparagraphs (a) through (d) of the
Commercial Computer-Restricted Rights clause at FAR 52.227-19 when applicable, or in subparagraph (c)(1)(ii) of the Rights in Tech-
nical Data and Computer Software clause at DFARS 252.227-7013, and/or in similar or successor clauses in the DOD or NASA FAR
Supplement. Contractor/manufacturer is Tecplot, Inc., Post Office Box 52708, Bellevue, WA 98015-2708.
06-360-07-1
Rev 03/2006
CONTENTS
Chapter 1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . 5
3
CONTENTS
4
Chapter 1 Introduction
A Tecplot macro is a set of instructions, called macro commands, which perform actions in Tecplot.
Macro commands can be used to accomplish virtually any task that can be done via the Tecplot
interface, offering an easy way to automate Tecplot processes. The only things you can do interac-
tively that cannot be done with macro commands are those actions that have no effect on a final,
printed plot (such as resizing the Tecplot process window). To augment this ability, there are macro
commands which have no corresponding interactive control, such as looping and conditional com-
mands. These commands typically go hand in hand with the execution of a macro.
You can create macros by recording them from the Tecplot interface using the Macro Recorder, or
create them from scratch using any ASCII text editor. In most cases, the most effective approach to
creating a macro is the following hybrid approach:
1. Run Tecplot and choose to record a macro to a file. Perform tasks similar to
those you are trying to capture in the final macro.
2. Close the recording session and examine the macro file. The commands gener-
ated by Tecplot should be fairly readable and easy to understand.
3. Make minor modifications to the recorded macro. Typical modifications
involve adding loops, adding variables, or adding commands that, for exam-
ple, prompt the user to enter a file name.
One of the main reasons for using the approach above is the large number of commands and permu-
tations of parameters. This manual provides an exhaustive listing of the available macro com-
mands. However, it is often easier to have Tecplot perform the action and record the relevant
command than look up individual commands and their required parameters.
An important feature of Tecplot’s macro command language is its Viewer/Debugger. Often, you
will have a well-developed macro that needs some modification. You can use the Debugger to step
through the macro to the point where you want the change to be made and then start recording to a
new file. Using a text editor, you can insert macro commands from a new file into an existing
macro file.
5
6
Chapter 2 Managing Macros
Tecplot macros are stored in files. These files are processed by loading them into Tecplot and
running them.
#!MC 1100
Tecplot macro functions are defined are defined in Tecplot macros by using the $!MACRO-
FUNCTION-$!ENDMACROFUNCTION commands. Between the $!MACROFUNCTION and
$!ENDMACROFUNCTION commands you may use any valid macro command (except $!MAC-
ROFUNCTION). When a Tecplot macro is loaded, all macro functions are extracted and the
attached commands are not executed until a $!RUNMACROFUNCTION command is encountered.
Macro functions may be retained if desired. A retained macro function remains defined in Tec-
plot even if the macro in which it was defined is replaced by another macro. Retained macro
functions may be called by other macros that are loaded at a later time.
tecplot -p a.mcr
If you use the .mcr extension for the macro file name, then the -p flag is optional. If you want
to debug the macro, include the -z flag as well.
7
If you want to debug a macro file, go to the File menu and selecting the Macro sub-menu, followed
by the View option. The Macro Viewer dialog appears so you can load in a macro. When the macro
is loaded, Tecplot waits at the first macro command for you to step through the commands. See the
Tecplot User’s Manual for complete details on how to use the Macro Viewer.
If you want Tecplot to display the Quick Macro Panel at starting include the -showpanel flag on
the command line.
To see an example of a macro function file, look at the file tecplot.mcr located in the exam-
ples/mcr sub-directory below the Tecplot home directory. If this file is moved to the Tecplot
home directory, the Quick Macro Panel will have options that include 3D Rotation Animation and
Reset Center of Rotation.
8
Chapter 3 Writing Forward
Compatible Macros
In order to ensure forward compatibility of your macro commands, please keep the following
guidelines in mind. These guidelines will allow you to create macros that will work for years, on
many machines and platforms.
1. Begin your macro by opening a layout.
This will ensure that the final plot is consistent between versions of Tecplot
(even if the default style settings for Tecplot have changed). Note: An alterna-
tive to using a layout is to load data and then paste a frame style file in each
frame.
If your macro will be used for more than one layout, you can ensure forward
compatibility by:
• Using the $!PromptForFileName command. This will allow the user to
interactively specify the layout file.
-or-
• Launching Tecplot from the command line, specifying the layout and
the macro: tecplot mylayout.lay mydatafile mymacro.mcr
2. Store associated files and graphics in the same folder as the macro file.
If your macro loads files or inserts images without allowing the user to choose
them, it is a good practice to store them in the same folder as the macro file
that uses them. After recording, edit the macro, and replace the path to the file
with the intrinsic macro variable |macrofilepath|.
Example:
$!Openlayout "|macrofilepath|\Density.lpk"
This allows the macro to work without editing in any location as long as the
entire folder of files was copied there.
9
• In a plot with multiple frames, don’t use $!Pick to change the current
frame. Instead, give each frame a meaningful name such as “Full
View” and “Zoom Frame” in the layout. Then use the command:
$!Framecontrol PopbyName Name = “Full View”
to access the frame you want. This will also simplify later changes to
the macro.
• If you must pick an item, make the pick as precise as possible. For
example, clicking on the center, not the edge, of a zone or slice will
increase the chances that the pick will be successful when the macro is
replayed.
When selecting text or geometries while recording a macro, click and
drag in the widest possible area around the objects to select. The com-
mand will be recorded as
$!PICK ADDALLINRECT
SELECTTEXT = YES
X1 = 1.56075949367
X2 = 3.97088607595
Y1 = 2.29556962025
Y2 = 3.91582278481
The x and y ranges can be expanded if needed.
10
Chapter 4 Debugging macros
In general, the best way to debug a macro is to use the Macro Viewer, and find
which command is causing the problem.
Problem: The macro was created with a previous version of Tecplot to make the plot needed. With a newer
version of Tecplot, the macro will run without error, but the plot looks different.
Solution: Run the macro with the old version of Tecplot, then save a frame
style to a file. Begin your macro by loading the data, then pasting the frame
style file from a file. This will ensure that the final plot will be consistent
from one version of Tecplot to the next, even if the default style settings for
Tecplot have been changed.
Problem: The macro gives you errors such as “File does not exist” or “Cannot open file”, but you can
locate the file.
Solution: Copy the file to the same folder as the macro file that uses the file.
Edit the macro, and replace the path to the file with the intrinsic macro
variable |macrofilepath|.
Example: $!Openlayout "|macrofilepath|\Density.lpk"
This allows the macro to work without editing in any location as long as the
entire folder of files was copied there.
11
Problem: Running the macro causes unusual error messages, such as: “No
objects to cut or the objects selected not allowed to be cut”, or “Not allowed
to adjust zones or mappings when the mouse mode is set to SELECTOR.”
When you run the macro in the Macro Viewer, you see that the problem
occurs with when a $!Pick command is run.
12
Solution: Avoid using a $!Pick command in your macro. Changes to the aspect ratio can
cause a recorded $!Pick command to fail when the macro is run on another machine or in
another version of Tecplot.
To fix the problem in an existing macro, follow these steps to make the coordinates
more precise:
1. Run the macro on the machine where the error message is generated.
2. Via the macro viewer or editor, identify the preceding $!PICK ADD or
similar select type pick command. Note the X,Y coordinates of the com-
mand. A good way to do this is:
a. Run the macro until you get the “No Objects to Shift” error message.
b. Click Ok on the dialog.
c. Bring up the macro viewer: File>Macro>Viewer
d. Find the nearest $!Pick ADD command above the current command and put a
break point on that command.
e. Press “Reset” to reset the macro and then run the macro.
NOTE: If the problem only occurs when running in batch mode then try to
determine the macro command by examining the batch.log file.
Insert a $!Pause command in your macro just before the $!Pick Add
command that precedes the offending command. Now run Tecplot
interactively from the macro viewer. You can then see the line number
where you need to put the break.
3. Back in Tecplot, select the zoom tool.
4. Hold the shift key down and notice that the running coordinates in the
lower right corner now show “PX = xxxxx PY = yyyyyy". xxxxxx and
yyyyyy are the paper coordinates of the hot spot of the zoom tool. (If you
see X and Y for grid coordinates, or FX and FY for frame coordinates, you
need to hold down the Shift key. Pick commands always use paper coordi-
nates.)
5. Move the zoom tool until xxxxx and yyyyy are close to the coordinates
noted in step 2.
6. Note where the pick occurred. It is likely the pick occurred some distance
away from the actual edge of the object to pick. Move the zoom tool to a
“better” location for the pick and note the coordinates.
7. Edit the macro file and replace the old X,Y pick coordinates with those
determined in step 6.
13
14
Chapter 5 Macro Command Syntax
A macro file consists of one or more macro commands. Comments may be inserted anywhere in the
file, except within a character string. Comments start with an “#” (octothorp) and extend to the end
of the line. The first line of a macro file contains a special comment that identifies the version num-
ber of the macro file. For Tecplot 360, this line is #!MC 1100.
#!MC 1100
<macrocommand>
<macrocommand>
. . .
$!commandname [commandspecificmodifiers]
[mandatoryparameters]
[optionalparameters]
where
15
expression Any valid infix notation expression. The entire expression must itself be enclosed
in parenthesis. For example (3+5).
enumeratedvalue A key word that is unique to the variable being assigned a value. For example, if
the variable being assigned a value is a basic color then the enumerated value can
be one of the following: BLACK, RED, GREEN, BLUE, CYAN,
YELLOW, PURPLE, WHITE, CUSTOM1 through CUSTOM56.
Spacing and capitalization for macro commands are, for the most part, not important. The follow-
ing examples show different ways to enter the same macro command to set the width and height for
the custom1 paper:
Example 1: $!PAPER
PAPERSIZEINFO
{
CUSTOM1
{
WIDTH = 3
}
}
16
Chapter 6 Macro Variables
Macro variables are identified by a sequence of characters surrounded by vertical bars (“|”). Some
examples are:
|myvariable|
|loop|
|1|
|$HOME|
Macro variables can be placed anywhere within a macro command. Upper case and lower case
characters are treated the same. For example |ABC| and |aBc| represent the same variable.
Macro variables will be expanded to their value at the time the macro statement is processed.
Example: The following macro commands will result in a rotation of the data about the X-axis by
10 degrees:
$!VARSET |a1| = 10
$!ROTATE X
ANGLE = |a1|
6 - 1 Internal Variables
The following table lists variables that are maintained by Tecplot which may be referenced by
macro commands.
Variables Notes
|AUXDATASET| Retrieve auxiliary data from a data set. |AUXDATASET:Reynolds| would
retrieve auxiliary data “Reynolds”
|AUXFRAME| Retrieve auxiliary data from a frame. |AUXFRAME:Byron| would retrieve
auxiliary data “Byron” from the current frame.
|AUXZONE| Retrieve auxiliary data from a zone. |AUXZONE[3]:BC| would retrieve
auxiliary data "BC" from zone 3 only.
|AXISMAXA| Maximum value of current Theta-axis range.
|AXISMAXR| Maximum value of current R-axis range.
|AXISMAXX| Maximum value of current X-axis range.
|AXISMAXY| Maximum value of current Y-axis range.
|AXISMAXZ| Maximum value of current Z-axis range.
17
Variables Notes
|AXISMINA| Minimum value of current Theta-axis range.
|AXISMINR| Minimum value of current R-axis range.
|AXISMINX| Minimum value of current X-axis range.
|AXISMINY| Minimum value of current Y-axis range.
|AXISMINZ| Minimum value of current Z-axis range.
|BYTEORDERING| Returns INTEL or MOTOROLA
|COLORMAPDYNAMIC| Returns one if the color map is dynamic, zero if static.
|DATASETFNAME| Returns data set file name.
|DATASETTITLE| The title of the data set, or “No Data Set” if a dataset does not exist.
|DATE| Returns the date in the form of 31 Jan 1998.
|ENDSLICEPOS| Position of end slice.
|EXPORTISRECORDING| Returns YES/NO to help macros complete record commands in proper
order.
|FRAMENAME| Returns the name of the current frame
|INBATCHMODE| Returns one if Tecplot is in batch mode, zero if in interactive mode.
|ISDATASETAVAILABLE| Returns 1 if a data set exists, and 0 if otherwise
|ISOSURFACELEVEL| Returns the current iso-surface’s iso-value. The intrinsic must use array
notation, meaning that |ISOSURFACE[2]| returns the value for the second
iso-surface.
|LAYOUTFNAME| Returns the current layout file name.
|LOOP| Innermost loop counter.
|MACROFILEPATH| Path to the directory containing the most recently opened macro file.
|MAXA| Maximum value for Angle variable for polar line plots, calculated from the
lowest numbered active polar line mapping.
|MAXB| Maximum value for blanking variable. If the plot is 2D or 3D Cartesian,
the value is calculated from the current set of active zones. For line plots,
the value is calculated from the zone assigned to the lowest numbered
active line mapping.
|MAXC| Maximum value for contour variable. If the plot is 2D or 3D Cartesian, the
value is calculated from the current set of active zones. For line plots, the
value is calculated from the zone assigned to the lowest numbered active
line mapping.
|MAXI| I-dimension for the lowest numbered active zone for 2D or 3D Cartesian
plots. For line plots this represents the maximum I-value for the zone
assigned to the lowest numbered active line mapping. For finite-element
data, this represents the number of the nodes in the lowest order zones.
|MAXJ| J-dimension for the lowest numbered active zone for 2D and 3D Cartesian
plots. For line plots this represents the maximum J-value for the zone
assigned to the lowest numbered active line mapping. For finite-element
data, the number of elements in the lowest numbered active zone.
18
Variables Notes
|MAXK| K-dimension for the lowest numbered active zone for 2D and 3D Cartesian
plots. For line plots this represents the maximum K-value for the zone
assigned to the lowest numbered active line mapping. For finite-element
data, this shows the number of nodes per element for the lowest numbered
active zone.
|MAXR| Maximum value of the R variable for polar line plots, calculated from the
lowest numbered active polar line plot.
|MAXS| Maximum value for scatter sizing variable for the currently active zones.
|MAXU| Maximum value for variable assigned to the X-vector component for the
currently active zones.
|MAXV| Maximum value for variable assigned to the Y-vector component for the
currently active zones.
|MAXVnn| Maximum value of variable nn.
|MAXVAR| Returns the maximum values of the specified variable. It is indexed by
array notation, meaning that a call of |MAXVAR[2]| gives the maximum
value of the second variable.
|MAXW| Maximum value for variable assigned to the Z-vector component for the
currently active zones.
|MAXX| Maximum value for variable assigned to the X-axis. If the plot is 2D or 3D
Cartesian, the value is calculated from the current set of active zones. For
line plots, the value is calculated from the zone assigned to the lowest
numbered active line mapping.
|MAXY| Maximum value for variable assigned to the Y-axis. For 2D or 3D
Cartesian plots, the value is calculated from the current set of active zones.
For line plots, the value is calculated from the zone assigned to the lowest
numbered active line mapping.
|MAXZ| Maximum value for variable assigned to the Z-axis for the currently active
zones.
|MINA| The minimum value for the Angle variable for polar line plots, calculate
from the lowest numbered active polar line mapping.
|MINB| Minimum value for blanking variable. For 2D or 3D Cartesian plots, the
value is calculated from the current set of active zones. For line plots, the
value is calculated from the zone assigned to the lowest numbered active
line mapping.
|MINC| Minimum value for contour variable. For 2D or 3D Cartesian plots, the
value is calculated from the current set of active zones. For line plots, the
value is calculated from the zone assigned to the lowest numbered active
line mapping.
|MINS| Minimum value for scatter sizing variable for the currently active zones.
|MINU| Minimum value for variable assigned to the X-vector component for the
currently active zones.
|MINV| Minimum value for variable assigned to the Y-vector component for the
currently active zones.
|MINVnn| Minimum value of variable nn.
19
Variables Notes
|MINVAR| Returns the minimum values of the specified variable. It is
indexed by array notation, meaning that a call of |MINVAR[4]|
gives the minimum value of the fourth variable.
|MINW| Minimum value for variable assigned to the Z-vector component for the
currently active zones.
|MINX| Minimum value for variable assigned to the X-axis. For 2D or 3D
Cartesian plots, the value is calculated from the current set of active zones.
For line plots, the value is calculated from the zone assigned to the lowest
numbered active line mapping.
|MINY| Minimum value for variable assigned to the Y-axis. For 2D or 3D Cartesian
plots, the value is calculated from the current set of active zones. For line
plots, the value is calculated from the zone assigned to the lowest
numbered active line mapping.
|MINZ| Minimum value for variable assigned to the Z-axis for the currently active
zones.
|NUMFRAMES| Number of frames.
|NUMLINEMAPS| Number of line maps assigned to the current frame.
|NUMPLANES| Returns number of graphics bit-planes
|NUMVARS| Number of variables in current data set.
|NUMZONES| Number of zones in current data set.
|OPSYS| Returns 1=UNIX, 2=DOS.
|PAPERHEIGHT| Returns height of paper, that is, the white area of the Tecplot work
area.
|PAPERSIZE| Returns size of paper.
|PAPERWIDTH| Returns the width of the paper.
|PLATFORM| Returns name of platform, such as SGI or Windows.
|PLOTTYPE| Zero = Sketch, one = XY, two = 2D, three = 3D, four = Polar line
plots.
|PRINTFNAME| Returns the file name of the last file sent for printing.
|SLICEPLANETYPE| Plane type to which slices are assigned.
|SOLUTIONTIME| Retrieve Tecplot’s current solution time.
|SOLUTIONTIME[[ACTIVEOFFS Retrieve the solution time of zone nnn. If ACTIVEOFFSET= is
ET=]nnn]| used, the integer value indicates the first zone associated with the
nnn’th active field map. |SOLUTIONTIME[5]| would retrieve the
solution time of the 5th zone.
|SOLUTIONTIME[ACTIVEOFFSET=3]| would retrieve the
solution time of the first zone in the 3rd active field map.
|STARTSLICEPOS| Position of first slice.
|STREAMSTARTPOS| Streamtrace starting position in X, Y, Z coordinates, given in the
form of 0.5, 3.2 5.6.
20
Variables Notes
|STREAMTYPE| The streamtrace type such as “Surface Line”, or “Surface Ribbon”
|TECHOME| Path to the Tecplot home directory.
|TECPLOTVERSION| Currently returns 110.
|TIME| Returns the current time in the form of 12:15:28
|VARNAME| Returns the name of a specified variable. This command uses
array notation, so |VARNAME[3]| will return the name of the third
variable.
|ZONEMESHCOLOR| Returns the color of a particular zone mesh. Uses array notation.
|ZONENAME| Returns the name of a specific zone. Uses array notation.
6- 2.1 Example 1
To compare a macro variable with an environment variable:
6- 2.2 Example 2
To create a string from an environment variable:
21
user-defined variable takes precedence and the internal value is not effected. The internal macro
variable can be recovered if you remove the user-defined variable using $!REMOVEVAR.
Examples:
Example 1: Add 2 to the macro variable |ABC|:
$!VARSET |ABC| += 2
$!VARSET |ABC| = 37
Example: Assign the string “myfile.plt” to the variable |FNAME|. Use |FNAME| in the
$!READDATASET command:
$!VARSET |FNAME| = "myfile.plt"
$!READDATASET "|FNAME|"
Note that double quotes (") had to be used in the $!READDATASET command even though
|FNAME| represents a string.
22
Example: Read in a data file assigned to the variable FNAME. If FNAME is unassigned, read in
"t.dat":
$!READDATASET "|FNAME:=t.dat|"
"|FNAME:=t.dat|"
Examples:
Example 1: The following commands define a macro function that uses two parameters and a
command to run the macro function. The first parameter to the macro function is the
amount to rotate about the X-axis and the second parameter is the amount to rotate about
the Y-axis:
The command to run the macro function will cause a rotation of 10 degrees about the
X-axis and 20 degrees about the Y-axis.
#!MC 1100
$!MACROFUNCTIONNAME = "3D Rotation Animation"
$!EXPORTSETUP EXPORTFORMAT = AVI
$!EXPORTSETUP IMAGEWIDTH = 546
$!EXPORTSETUP EXPORTFNAME = "|1|AxisRotation.avi"
$!EXPORTSTART
$!LOOP |2|
ANGLE = 3
ROTATEORIGINLOCATION = DEFINEDORIGIN
$!REDRAW
$!EXPORTNEXTFRAME
$!ENDLOOP
$!EXPORTFINISH
$!ENDMACROFUNCTION
$!RUNMACTOFUNCTION "3D Rotation Animation" (Theta", 6, 30)
Example 2: The following commands define a macro function that opens two layout files:
$!MACROFUNCTION
NAME = "OL2"
$!OPENLAYOUT "|1|"
$!OPENLAYOUT "|2|"
APPEND = TRUE
$!ENDMACROFUNCTION
.
.
.
$!RUNMACROFUNCTION "OL2" ("g1.lay","g2.lay")
23
6 - 8 Using Formats in Macro Variables
When a macro variable is expanded and the macro variable is a numeric value, it is expanded using
a “best float” format. It tries to make the number look as simple as possible while still retaining as
much accuracy as possible. If you want the number to be formatted in a specific way then you can
include C-style number formatting strings in the macro variable specification. The syntax for
including a format string is:
|macrovariable%formatstring|
Example 1: Suppose you want to pause a macro and display the message "Maximum contour
value is:xxxxxx" where xxxxxx only has two digits to the right of the decimal place. You would
use:
$!Pause "Maximum contour value is: |MAXC%.2f|"
If |MAXC| currently has a value of 356.84206 then the dialog would show:
"Maximum contour value is: 356.84"
Example 2: If, in the above example, you wanted to use exponential format you could use:
$!Pause "Maximum contour value is: |MAXC%12.6e|"
Here the result would be:
"Maximum contour value is: 3.568421e+02"
24
Chapter 7 Macro Command
Summary
This chapter presents a brief list of the major macro commands in Tecplot. All major macro com-
mands are preceded by “$!” (dollar sign, exclamation mark).
• Control commands (Control in the Type column) deal with the flow of control
within a Tecplot macro.
• Action commands (Action in the Type column) perform some type of visible
action in Tecplot like rotating an object or redrawing a frame, file input/output,
or creating or destroying objects within Tecplot.
$!ACTIVEFIELDMAPS
A SetValue command that changes the set of active field maps (thus changing
the active zones) considered for plotting.
$!ACTIVELINEMAPS
A SetValue command that changes the set of line-mappings considered for plot-
ting.
$!ADDMACROPANELTITLE
Add a title to the Quick Macro Panel.
25
$!ADDONCOMMAND
Send a command to an add-on. An add-on registers the name of a function that
will be called when an $!ADDONCOMMAND is processed. Tecplot knows which
registered function to call based on the ADDONID string. See the function
TecUtilMacroAddCommandCallback in the Tecplot ADK Reference Manual.
$!ALTERDATA
The ALTERDATA function operates on a data set within Tecplot using FOR-
TRAN-like equations. See the Tecplot User’s Manual for more information on
using equations in Tecplot. The <zonelist> parameter specifies the set of zones
on which to operate, where zonelist is a list of zones or zone ranges separated
by a comma (“,”). Zone ranges are separated by a hyphen (“-”). If <zonelist> is
omitted, all zones are affected. NOTE: the values for the <zonelist> parameter
must be enclosed in square brackets (i.e. $!ALTERDATA [1,3] to apply ALTER-
DATA to zones 1 and 3).
$!ANIMATECONTOURLEVELS
Produce an animation of a contour line plot by showing a single level at a time.
The animation varies according to the currently defined contour levels and is
limited by the values in the START, END, and SKIP parameters. To create an AVI
or RM file, add $!EXPORTSETUP commands before this command.
$!ANIMATEIJKBLANKING
Produce an animation of different IJK-blankings in your plot. The animation
starts at one IJK-blanking setting and marches through intermediate steps to a
second setting. To create an AVI or RM file, add $!EXPORTSETUP commands be-
fore this command.
$!ANIMATEIJKPLANES
Produce an animation that cycles through I-, J- or K-planes in an IJK-ordered
data set. To create an AVI or RM file, add $!EXPORTSETUP commands before this
26
command.
$!ANIMATEISOSURFACES
The macro command $!ANIMATEISOSURFACES produces an animation of a se-
ries of iso-surfaces beginning with the iso-surface defined by STARTVALUE and
ending with the iso-surface defined by ENDVALUE. To create an AVI or RM file,
add $!EXPORTSETUP commands before this command.
$!ANIMATELINEMAPS
Produce an animation of one Line-mapping at a time. To create an AVI or RM
file, add $!EXPORTSETUP commands before this command.
$!ANIMATESLICES
The macro command $!ANIMATESLICES uses the currently defined start and
end slice position. Use $!SLICEATTRIBUTES to set these positions; $!ANI-
MATESLICES then redefines how many intermediate slices are to be used, then
animates a sub-set of those slices. To create an AVI or RM file, add $!EXPORT-
SETUP commands before this command.
$!ANIMATESTREAM
Produce an animation of stream markers or dashes, moving along the currently
defined streamtrace paths. To create an AVI or RM file, add $!EXPORTSETUP
commands before this command.
$!ANIMATETIME
Produce an animation of transient data. To create an AVI or RM file, add $!EX-
PORTSETUP commands before this command.
$!ANIMATEZONES
Produce an animation showing one zone at a time. To create an AVI or RM file,
27
add $!EXPORTSETUP commands before this command. NOTE: this com-
mand will not work if the current frame contains a transient data set.
$!ATTACHDATASET
Attach the current frame to the data set of another frame. This command is usu-
ally found only in layout files generated by Tecplot. Note that the $!FRAMEMODE
command automatically executes an $!ATTACHDATASET command if a frame
mode is requested in a frame that does not have an attached data set. Tecplot at-
taches the data set from the closest frame (in drawing order) having an attached
data set.
$!ATTACHGEOM
Attach a geometry to the current frame.
$!ATTACHTEXT
Attach text to the current frame.
$!BASICCOLOR
A SetValue command that sets the red, green and blue components for any of
the basic colors in Tecplot.
$!BASICSIZE
A SetValue command that sets sizes of various objects like line thicknesses, line
pattern length, font height, and so forth. Sizes can be assigned when interacting
with Tecplot by either entering an exact value or by choosing from a preset list
of values. The $!BASICSIZE command allows you to change the values in the
preset lists.
$!BLANKING
A SetValue command that changes settings for IJK- or value-blanking.
28
$!BRANCHCONNECTIVITY
For zones where connectivity is shared, this command allows for branching of
connectivity information from the specified zone.
$!BRANCHFIELDDATAVAR
Allows for branching of specified variable in the specified zone for zones that
share variables.
$!BREAK
Jump out of the current $!LOOP-ENDLOOP or $!WHILE-$!ENDWHILE.
29
$!COLORMAPCONTROL [<groupnumber>] RESETTOFACTORY
Redistribute the control points and reset the RGB values for the currently active
color map. This is equivalent to clicking Reset on the Color Map dialog. Group
number is an optional parameter ranging from 1 to 4, which defaults to 1 when
omitted.
$!COMPATIBILITY
Allow datasharing access and setting, without warning.
$!CONTINUE
Transfer control back to nearest $!LOOP or $!WHILE.
$!CONTOURLABELS ADD
Add contour labels to your plot.
$!CONTOURLABELS DELETEALL
Delete all currently defined contour labels.
$!CONTOURLEVELS ADD
Add a new set of contour levels to the existing set of contour levels.
30
$!CONTOURLEVELS DELETENEAREST
Delete the contour level whose value is nearest the value supplied in the
RANGEMIN parameter.
$!CONTOURLEVELS DELETERANGE
Delete all contour levels between a minimum and maximum contour value (in-
clusive).
$!CONTOURLEVELS NEW
Replace the current set of contour levels with a new set.
$!CONTOURLEVELS RESET
Reset the contour levels to a set of evenly distributed values spanning the entire
range of the currently selected contouring variable.
$!CONTOURLEVELS RESETTONICE
Reset the contour levels to a set of evenly distributed, nice values spanning the
entire range of the currently selected contouring variable, with a specified num-
ber of entries.
$!CREATECIRCULARZONE
Create a circular (or cylindrical) IJ- or IJK-ordered zone.
$!CREATECONTOURLINEZONES
Create zones from the currently-defined contour lines. One zone can be created
from each contour level in that plot, or one zone for every polyline can be gen-
erated.
31
$!CREATEFEBOUNDARY
Zone edges for finite element data cannot be turned on or off using the edge plot
layer in Tecplot. You can, however, create a separate zone which is the bound-
ary of a finite element zone. This new zone can then be turned on or off.
$!CREATEFESURFACEFROMIORDERED
A FE-Surface zone can be generated from two or more I-Ordered zones. To get
the best possible output, it is recommended that the source zones should have
their nodes arranged in a similar manner so that the connecting lines between
points are as straightforward as possible. For this reason, indices from source
zones should increase in the same direction.
$!CREATEISOZONES
Create zones from the currently defined iso-surfaces. One zone will be created
from each defined iso-surface. The iso-surfaces must be active and you must
have at least one active volume zone.
$!CREATELINEMAP
Create a new Line-mapping.
$!CREATEMIRRORZONES
Create new zones that are mirror images of the source zones
$!CREATENEWFRAME
Creates a new frame.
$!CREATERECTANGULARZONE
Create a rectangular zone. If no data set exists when this command is executed,
a data set is created with variables X, Y (and Z, if KMax > 1). If a data set exists
prior to this command, the non-coordinate variables for the zone created are ini-
32
tialized to zero.
$!CREATESIMPLEZONE
Create a new zone by specifying only a list of XY-pairs of data. If other zones
exist prior to using this function and there are more than 2 variables, then the
additional variables are also created and set to zero.
$!CREATESLICEZONEFROMPLANE
Create a new zone as a slice through existing 3-D volume zones. Use $!GLO-
BALTHREED to define the slicing plane orientation.
$!CREATESLICEZONES
Create a new zone for each slice defined on the Slice Details dialog. Only cre-
ates slices from volume zones.
$!CREATESTREAMZONES
Create one or more zones out of the currently defined streamtraces. The new
zones have the same number of variables per data point as the other zones in the
data set with all non-coordinate variables interpolated at the positions along the
streamtrace.
$!DATASETUP
A SetValue command that sets miscellaneous parameters related to data.
$!DEFAULTGEOM
A SetValue command that sets the attributes for the default geometry. When a
geometry is created interactively, its color, line thickness, and so forth, are pre-
set based on the default geometry. This command is usually used only in the
Tecplot configuration file.
33
$!DEFAULTTEXT
A SetValue command that sets the attributes for the default text. When text is
added to a plot interactively, its font, color, size, and so forth, are based on the
default text. This command is usually used only in the Tecplot configuration
file.
$!DELAY
Delay Tecplot execution for <integer> seconds.
$!DELETEAUXDATA
Delete Auxiliary Data in the form of name/value pairs from zones, frames or
datasets.
$!DELETELINEMAPS
Delete one or more Line-mappings. If <set> is omitted then all Line-mappings
are deleted.
$!DELETEVARS
Delete one or more variables.
$!DELETEZONES
Delete one or more zones.
$!DOUBLEBUFFER OFF
Turn off double buffering; use this command once at the end of a sequence of
34
using the double buffer.
$!DOUBLEBUFFER ON
Turn on double buffering; use this command once at the beginning of a se-
quence of using the double buffer. While double buffering is turned on all draw-
ing is sent to the back buffer.
$!DOUBLEBUFFER SWAP
Swap the back buffer to the front. In other words, copy the image in the back
buffer to the front.
$!DRAWGRAPHICS
Turn on or off all graphics drawing. Turning off all graphics during preliminary
portions of a macro file can greatly increase the efficiency of the macro.
$!DROPDIALOG
Drop a Tecplot interface dialog. This command is mainly useful for the Tecplot
demo. To launch a dialog use $!LAUNCHDIALOG.
$!DUPLICATELINEMAP
Copy attributes from an existing Line-mapping to another.
$!DUPLICATEZONE
Make a copy of an existing zone. You can assign index ranges to create a new
zone which is a subset of the source zone.
$!ELSE
Conditionally handle macro commands. Used when an $!IF statement is
FALSE.
35
$!ELSEIF
Conditionally handle macro commands. Used to create multiple options for
statements should an $!IF statement be FALSE.
$!EXPORT
Export an image file from Tecplot. See the $!EXPORTSETUP command for de-
tails on setting up the exported image type. The $!EXPORT command is not val-
id for animation formats. (AVI and Raster Metafile.)
$!EXPORTCANCEL
Cancel out of the current export animation sequence. The animation file being
generated is removed.
$!EXPORTFINISH
Signals the completion of an animation sequence and causes the animation file
to be created. You must call $!EXPORTSTART prior to using $!EXPORTFINISH.
This command is only valid for animation formats. (AVI and Raster Metafile.)
You may use the |EXPORTISRECORDING| intrinsic variable to make sure that an
animation sequence has been initiated.
$!EXPORTNEXTFRAME
Records the next frame of an animation. You must call $!EXPORTSTART prior to
calling $!EXPORTNEXTFRAME. This command is only valid for animation for-
mats. (AVI and Raster Metafile. You may use the |EXPORTISRECORDING| in-
trinsic variable to make sure that an animation sequence has been initiated.)
$!EXPORTSETUP
A SetValue command that sets the attributes for exporting image files from Tec-
plot. Exporting is usually intended as a means to transfer images from Tecplot
to be imported by other applications. See $!PRINTSETUP and $!PRINT for gen-
36
erating output intended for printers and plotters.
$!EXPORTSTART
Signals the start of an animation sequence and records the first frame of the an-
imation. This command is only valid for animation formats. (AVI and Raster
Metafile.)
$!EXTRACTFROMGEOM
Extract data from a 2- or 3-D field plot. The locations at which to extract the
data come from a polyline geometry that must be picked prior to issuing this
command.
$!EXTRACTFROMPOLYLINE
Extract data from a 2- or 3-D field plot. The locations of where to extract the
data from come from a supplied polyline in the form of <xyzrawdata>.
$!FIELDLAYERS
A SetValue command that turns field plot layers on or off, or sets the 2-D draw
order.
$!FIELDMAP
A SetValue command that assigns zone attributes for field plots. The <set> pa-
rameter immediately following the $!FIELDMAP command is optional. If <set>
is omitted then the assignment is applied to all zones. Otherwise the assignment
is applied only to the zones specified in <set>.
$!FILECONFIG
A SetValue command that sets file path information in Tecplot.
37
$!FONTADJUST
A SetValue command that sets character spacing and sizing for fonts in Tecplot.
These parameters are rarely changed.
$!FRAMECONTROL DELETETOP
Delete the top (active) frame. If there is only one frame when this is called, a
new empty frame is automatically created after this command is executed.
(Thus, you can never have a workspace without at least one frame.)
$!FRAMECONTROL FITALLTOPAPER
Resize all frames so that they fit inside the hardclip limits of the paper.
$!FRAMECONTROL POP
Pop a frame to the top (make it the active frame).
$!FRAMECONTROL POPATPOSITION
Pop the top most frame at a specified position on the paper.
$!FRAMECONTROL POPBYNAME
Pop the specified frame to the top of the view stack.
$!FRAMECONTROL PUSH
Push a frame to the bottom of the frame stack (it is given the frame number 1
and therefore drawn first).
38
$!FRAMECONTROL PUSHBYNAME
Push the specified frame to the bottom of the view stack.
$!FRAMECONTROL PUSHTOP
Push the top (active) frame to the bottom.
$!FRAMELAYOUT
A SetValue command that sets the position, border, and background attributes
for the current frame. Use the $!FRAMECONTROL action command to push and
pop frames if you want to change the settings for a frame other than the current
frame.
$!FRAMENAME
Set the name for the current frame.
$!FRAMESETUP
A SetValue command that sets parameters used to preset dynamic frame at-
tributes when a frame is initialized.
$!GETAUXDATA
Retrieve Auxiliary Data in the form of name/value pairs and save it to the mac-
rovariable.
$!GETCONNECTIVITYREFCOUNT
Fetch the count of how many zones share connectivity with the specified zone.
Count includes specified zone.
$!GETCURFRAMENAME
Query Tecplot for the name of the current frame. The <macrovar> represents the macro vari-
39
able to receive the results.
$!GETFIELDVALUE
Fetch the field value (data set value) at the specified point index and assign the
value to <macrovar>. If the zone referenced is IJ- or IJK-ordered, then the point
index is calculated by treating the 2- or 3-dimensional array as a 1-D array.
$!GETFIELDVALUEREFCOUNT
Get the count of how zones many share the indicated variable with the specified
zone. Count includes the specified zone.
$!GETNODEINDEX
This function only works for finite-element zones. Query for the node index in
the specified location as described by the ZONE, ELEMENT, and CORNER param-
eters.
$!GETVARLOCATION
Returns the location of the variable in the zone as either CELLCENTERED or
NODAL and saves in the macro variable.
$!GETVARNUMBYNAME
Given a variable name, get the number for that variable. This variable number
can then be used to assign attributes, such as what variable to use for contouring.
$!GETZONETYPE
Query for the zone type of the specified zone. The zone type will be assigned to
<macrovar>. The possible return values are:
$!GLOBALCOLORMAP
A SetValue command that changes the settings for the global contour color map
40
and the global light source shading color map in Tecplot. Changes here affect
all frames using these color maps. See $!GLOBALCONTOUR COLORMAPFILTER for
additional settings that can be applied on a frame-by-frame basis.
$!GLOBALCONTOUR
A SetValue command that changes global attributes associated with contour
plots or contour levels. <contourgroup> refers to the defined contour groups,
C1-C4, allowed in Tecplot, and takes an integer value of one through four. The
<contourgroup> parameter is optional, and if omitted, C1 will be treated as cur-
rent.
$!GLOBALEDGE
A SetValue command that sets attributes which sets the minimum crease angle
for edges.
$!GLOBALFRAME
A SetValue command that sets attributes which apply to all frames.
$!GLOBALLINEPLOT
A SetValue command that changes global attributes associated with Line-plots.
$!GLOBALPOLAR
Allows polar plots to have curved lines that are interpolated along the R-Axis
between data points.
$!GLOBALRGB
Allows RGB coloring for plots which have RGB values specified at each vertex.
This coloring option is valuable for plots with entities such as Gas, Oil and Wa-
ter. RGB Coloring can be assigned to field plot objects such as zones, iso-sur-
faces and slices
41
$!GLOBALSCATTER
A SetValue command that changes global attributes associated with scatter
plots.
$!GLOBALTHREED
A SetValue command that changes global attributes associated with 3-D plots.
$!GLOBALTHREEDVECTOR
A SetValue command that changes global attributes associated with 3-D vector
plots.
$!GLOBALTIME
A SetValue command for frames (2D and 3D ONLY). Different frames can
have different values of $!GLOBALTIME
$!GLOBALTWODVECTOR
A SetValue command that changes global attributes associated with 2-D vector
plots.
$!IF...$!ENDIF
Conditionally process macro commands.
$!INCLUDEMACRO
Insert the commands from another macro file. Because the $!INCLUDEMACRO
command is processed when the macro is loaded and not when the macro is ex-
ecuted, you are not allowed to reference macro variables within the <string> pa-
rameter.
42
$!INTERFACE
A SetValue command that sets attributes related to the Tecplot interface.
$!INVERSEDISTINTERPOLATE
Interpolate selected variables from one or more zones onto a destination zone
using the inverse distance method.
$!ISOSURFACEATTRIBUTES
A SetValue command which changes attributes associated with iso-surfaces.
The optional group parameter can range from 1-4 and defaults to 1 when absent.
$!ISOSURFACELAYERS
$!KRIG
Interpolate selected variables from a set of source zones to a destination zone
using the kriging method.
$!LAUNCHDIALOG
Launch a Tecplot interface dialog; This command is mainly useful for the Tec-
plot demo.
$!LIMITS
A SetValue command that sets some of the internal limits in Tecplot. See Tec-
plot User’s Manual for the default values for these limits. The $!LIMITS com-
mand can only be used in the Tecplot configuration file.
$!LINEARINTERPOLATE
Interpolate selected variables from a set of source zones to a destination zone
using linear interpolation. The source zones cannot be I-ordered. Values as-
signed to the destination zone are equivalent to the results of using the probe
43
tool in Tecplot.
$!LINEMAP
A SetValue command that assigns attributes for individual Line-mappings. The
<set> parameter immediately following the $!LINEMAP command is optional. If
<set> is omitted then the assignment is applied to all Line-mappings, otherwise
the assignment is applied only to the Line-mappings specified in <set>.
$!LINEPLOTLAYERS
A SetValue command that turns on or off Line-plot layers.
$!LINKCOLORMAPS
Set to true to tie all colormaps together.
$!LINKING
Link attributes in two or more frames so that changes to attributes of one frame
effect all linked frames.
$!LOADADDON
Load an add-on into Tecplot. The <string> is the name of the add-on to load. See
the Tecplot User’s Manual for instructions on how to specify the add-on.
$!LOADCOLORMAP
Load a color map file. The <string> is the name of the file to load.
$!LOOP...$!ENDLOOP
Process macro commands in a loop. Within the loop you may access the current
loop counter using the internal macro variable |Loop|. Loops may be nested up
to 10 levels deep.
44
$!MACROFUNCTION...$!ENDMACROFUNCTION
Define a macro function. All commands between a $!MACROFUNCTION and the
$!ENDMACROFUNCTION are associated with the macro function NAME. These
commands are not executed when they are defined but are executed when a
$!RUNMACROFUNCTION command is processed. Parameters can be passed to a
macro function. Use |n| to reference the nth parameter. (See $!RUNMACROFUNC-
TION). To use the KEYSTROKE option, <Crtl>+M must be pressed initially.
$!NEWLAYOUT
Clear the current layout and start again. A blank default frame will be created
for you.
$!OPENLAYOUT
Open and read in a new layout file. The <string> is the name of the file to open.
$!PAPER
A SetValue command that sets the paper characteristics.
$!PAUSE
Stop execution of a macro and optionally display a dialog with a message. If
<string> is set to "" then no dialog is displayed and the user must click in the work
area to continue.
$!PICK ADD
Attempt to pick an object at a specific location on the paper.
45
$!PICK ADDALL
Add all objects of a certain type to the list of picked objects.
$!PICK ADDALLINRECT
Add objects defined within a specified region to the list of picked objects. The
region is defined in terms of the paper coordinate system. Optional filters can
be used to restrict the objects selected. The region is defined by the two corner
points (X1, Y1) and (X2, Y2).
$!PICK CLEAR
Delete all objects that are currently picked. (These objects cannot be retrieved.)
$!PICK COPY
Copy all objects that are currently picked to the paste buffer.
$!PICK CUT
Copy all objects that are currently picked to the paste buffer and then delete
them.
$!PICK EDIT
Perform a global edit operation on the currently picked objects. Only one edit
operation is allowed per $!PICK EDIT command. Objects are edited only if the
supplied parameter is relevant. Actions taken using the Quick Edit dialog in
Tecplot generate these commands.
$!PICK MAGNIFY
Magnify all picked objects. The objects will also be translated proportional to
the distance between their anchor position and the anchor position of the first
object picked.
46
$!PICK PASTE
Paste the currently picked objects from the paste buffer to the work area.
$!PICK POP
Change the order in which objects are drawn by popping the currently picked
objects to the front. Only frames, text, geometries, and the grid area for 2-D
plots are allowed.
$!PICK PUSH
Change the order in which objects are drawn by pushing the currently picked
objects back. Only frames, text, geometries, and the grid area for 2-D plots are
allowed.
$!PICK SETMOUSEMODE
Prepare to pick objects by setting the mouse mode to SELECT or
ADJUST. This command also clears the list of picked objects (that is, unpicks all
picked objects).
$!PICK SHIFT
Shift the currently picked objects. Objects are shifted relative to their starting
position. X and Y shift amounts are in paper units (inches). If snapping is in ef-
fect then it is applied after shifting in X and Y. (See the SetValue commands
$!GLOBALFRAME SNAPTOGRID and $!GLOBALFRAME SNAPTOPAPER.)
$!PLOTTYPE
Changes plot types between valid Tecplot modes such as XYLine and
Cartesian2D. Valid options shown below.
$!POLARAXIS
A SetValue command that assigns attributes for axes in a polar frame.
47
$!POLARTORECTANGULAR
Treat the variables currently assigned to X and Y as referring to R and q and
convert them to X and Y. In 3-D, X, Y and Z refer to R, q, and y. Tecplot has
addition capabilities for transforming coordinates, please see $!TRANSFORMCO-
ORDINATES.
$!POLARVIEW
Sets the viewing style for polar plots in a layout.
$!PRINT
Print the current layout to a printer or send the print instructions to a file. Use
the $!PRINTSETUP SetValue command to configure printing.
$!PRINTSETUP
A SetValue command that sets the attributes for printing. Use $!PRINT to do the
actual printing. See $!EXPORTSETUP and $!EXPORT if you intend to create image
files destined for desktop publishing programs.
$!PROMPTFORFILENAME
Instruct Tecplot to launch a file selection dialog. The resulting file name will be
placed in <macrovar>. If the user cancels out of the dialog then <macrovar>
will be empty (see the example below).
$!PROMPTFORTEXTSTRING
Instruct Tecplot to launch a dialog containing a single line text field and option-
al instructions. The user enters text into the text field and the resulting string is
assigned to <macrovar>.
$!PROMPTFORYESNO
Instruct Tecplot to launch a dialog containing two buttons, one labeled Yes and
48
the other No. The <macrovar> is assigned the string Yes or No depending on the
selection.
$!PROPAGATELINKING
Link multiple frames, ether within frame or between frames.
$!PUBLISH
Create an HTML file displaying one or more images. A linked layout with
packaged data may be included. You must provide the file name.
$!QUIT
Terminate the execution of the Tecplot program.
$!RAWCOLORMAP
Assign the RGB values that define the Raw user-defined color map. This does
not set the color map to use the Raw user-defined color map. Use $!COLORMAP
to set the current color map.
$!READDATASET
Read one or more data files into Tecplot to form a new data set.
$!READSTYLESHEET
Read in a stylesheet file. The <string> is the name of the file to read.
$!REDRAW
Redraw the current frame.
49
$!REDRAWALL
Redraw all frames.
$!REMOVEVAR
Remove a user-defined macro variable. This frees up space so another user-de-
fined macro variable can be defined.
$!RENAMEDATASETVAR
Rename a data set variable in Tecplot.
$!RENAMEDATASETZONE
Rename a data set zone in Tecplot.
$!RESET3DAXES
Reset the ranges on the 3-D axes.
$!RESET3DORIGIN
Reposition the rotation origin in 3-D to be at the specified location.
$!RESET3DSCALEFACTORS
Recalculate the scale factors for the 3-D axes. Aspect ratio limits are taken into
account.
$!RESETVECTORLENGTH
Reset the length of the vectors. Tecplot will find the vector with the largest mag-
nitude and set the scaling factor so it will appear on the screen using the length
specified by $!FRAMESETUP VECTDEFLEN.
50
$!ROTATE2DDATA
Rotate field data in 2-D about any point.
$!ROTATE3DVIEW
Do a 3-D rotation about a given axis. The <rotateaxis> must be supplied.
$!RUNMACROFUNCTION
Execute commands defined in a macro function. The <string> references the name
of the macro function to run. If the macro requires parameters, then include
them (within parentheses) after the macro name.
$!SAVELAYOUT
Save the current layout to a file. You must supply the file name.
$!SET3DEYEDISTANCE
Sets the distance from the viewer to the plane of the current center of rotation.
$!SETAUXDATA
Add Auxiliary Data in the form of name/value pairs to zones, frames or datasets.
The name must begin with an underscore or letter, and may be followed by one
or more underscore, period, letter, or digit characters.
$!SETDATASETTITLE
Set the title for the current data set.
$!SETFIELDVALUE
Specify a field value (data set value) at a specified point index. If the zone ref-
erenced is IJ- or IJK-ordered then the point index is calculated by treating the 2-
or 3-D array as a 1-D array.
51
$!SETFRAMEBACKGROUNDCOLOR
Sets the frame background to the specified color and surveys all basic color as-
signments in Tecplot, converting the all basic colors using the following rules
to achieve the best contrast:
$!SETSTYLEBASE
Instruct Tecplot on how to initialize frame style values when a new frame is cre-
ated. During normal operation, Tecplot bases the style of a new frame on the
factory defaults plus any changes assigned in the Tecplot configuration file.
Layout files and stylesheet files, however, rely on Tecplot basing new frames
only on the factory defaults. This command is typically not used by the casual
user.
$!SHARECONNECTIVITY
Share the nodemap between the source and destination zones, presuming that
the zones are FE and have the same element type and number of nodes.
$!SHAREFIELDDATAVAR
Allows sharing of the specified variable from the source zone to the destination
zone. Zone must be of the same type (ordered or FE) and dimensions. Cell cen-
tered variables in FE must have the same number of cells. Sharing is not allowed
if either zone has global face neighbors.
$!SHIFTLINEMAPSTOBOTTOM
Shift a list of Line-mappings to the bottom of the Line-mapping list. This in ef-
fect causes the selected Line-mappings to be drawn last.
$!SHIFTLINEMAPSTOTOP
Shift a list of Line-maps to the top of the Line-map list. This in effect causes the
selected Line-maps to be drawn first.
52
$!SHOWMOUSEPOINTER
The mouse icon may be deactivated within a macro to enhance the on-screen
animation. It must be reactivated before exiting the macro.
!SKETCHAXIS
A SetValue command that assigns attributes for axes in a sketch mode frame.
Axes are rarely used in sketch frames.
$!SLICEATTRIBUTES
A SetValue command that changes global attributes associated with slices.
$!SLICELAYERS
$!SMOOTH
Smooth data (reduce the spikes) for selected variables in selected zones.
$!STREAMATTRIBUTES
A SetValue command that changes global attributes associated with streamtrac-
es.
$!STREAMTRACE ADD
Add a single streamtrace or a rake of streamtraces to the current frame. The
frame must be a 2-D or 3-D field plot.
53
$!STREAMTRACE DELETEALL
Deletes all streamtraces in the current frame. If the frame mode is 2-D, all 2-D
streamtraces are deleted. If the frame mode is 3-D, all 3-D streamtraces are de-
leted.
$!STREAMTRACE DELETERANGE
Delete a range of streamtraces. Streamtraces are numbered sequentially in the
order they were created.
$!STREAMTRACE RESETDELTATIME
Reset the time delta for dashed streamtraces. The delta time is reset such that a
stream dash in the vicinity of the maximum vector magnitude will have a length
approximately equal to 10 percent of the frame width.
$!STREAMTRACE SETTERMINATIONLINE
Set the position of the termination line for streamtraces.
$!STREAMTRACELAYERS
$!SYSTEM
Instruct Tecplot to submit a command to the operating system. For security rea-
sons, execution of the $!SYSTEM command can be disabled to prevent unautho-
rized execution of system commands via macros. Use the
OKTOEXECUTESYSTEMCOMMAND option to the $!INTERFACE macro command.
$!THREEDAXIS
A SetValue command that assigns attributes for axes in a 3-D frame.
$!THREEDVIEW
A SetValue command that changes global attributes associated with the 3-D
54
view.
$!TRANSFORMCOORDINATES
Transforms all points in one or more zones from one coordinate system to an-
other.
$!TRIANGULATE
Create a new zone by forming triangles from data points in existing zones.
$!TWODAXIS
A SetValue command that assigns attributes for axes in a 2-D frame.
$!VARSET
Assign a value to a macro variable. If the macro variable did not exist prior to
this command, then it is defined here. A macro variable can be assigned a value
or a string.
$!VIEW AXISFIT
Reset the range on a specific axis so that it equals the minimum and maximum
of the data being plotted. If the axis dependency is not independent then this ac-
tion may also affect the range on another axis.
$!VIEW AXISMAKECURRENTAXISVALUESNICE
Reset the axis-line label values such that all currently displayed values are set
to have the smallest number of significant digits possible.
55
$!VIEW AXISNICEFIT
Reset the range on a specific axis so that it equals the minimum and maximum
of the data being plotted, but makes the axis values “nice” by setting labels to
have the smallest number of significant digits possible. If the axis dependency
is not independent then this action may also affect the range on another axis.
$!VIEW CENTER
Center the data within the axis grid area.
$!VIEW COPY
Copy the current view to the view paste buffer. See also $!VIEW PASTE.
$!VIEW DATAFIT
Fit the current set of data zones or line mappings being plotted within the grid
area. This does not take into consideration text or geometries.
$!VIEW FIT
Fit the entire plot to the grid area. This also takes into consideration text and ge-
ometries that are plotted using the grid coordinate system. In 3-D, this also in-
cludes the axes.
$!VIEW LAST
Retrieve the previous view from the view stack. Each frame mode within each
frame maintains its own view stack. $!VIEW LAST will not reverse alterations
to data.
$!VIEW MAKECURRENTVIEWNICE
Shifts axis to make axis-line values nice without changing the extents of the
window. Only works in Sketch/XY/2D.
56
$!VIEW NICEFIT
Change view to make the extents of the frame neatly hold the plot with integer
values for axis labels. Only works in Sketch/XY/2D.
$!VIEW PASTE
Retrieve the view from the view paste buffer and assign it to the current frame.
$!VIEW PUSH
Instruct Tecplot to push the current view onto the view stack. A view will not
be pushed if the current view is the same as the top view on the stack. Note that
commands VIEW AXISFIT, VIEW CENTER, VIEW DATAFIT, VIEW FIT, and
VIEW ZOOM automatically push a view onto the stack. Tecplot automatically
pushes the current view onto the stack when a $!REDRAW command is issued and
the current view is different from the top view on the view stack.
$!VIEW RESETTOENTIRECIRCLE
Reset the Theta-R Axis to initial settings. For Polar plots only.
$!VIEW SETMAGNIFICATION
Set the magnification for the data being plotted. A magnification of 1 will size
the plot so it can fit within the grid area.
$!VIEW TRANSLATE
Shift the data being plotted in the X- and/or Y-direction. The amount translated
is in frame units.
$!VIEW ZOOM
Change the view by “zooming” into the data. In Sketch, XY, and 2D frame
mode plots, Tecplot will adjust the ranges on the axis to view the region defined
by the rectangle with corners at (X1, Y1) and (X2, Y2). For 3-D orthographic
57
plots, the view is translated and scaled to fit the region. For 3-D perspective
plots, the view is rotated about the viewer and scaled to fit the region. X1 and
so forth are measured in grid coordinates.
$!WHILE...$!ENDWHILE
Continue to execute a set of commands until a conditional expression is false.
$!WORKSPACEVIEW FITALLFRAMES
Change the view in the workspace so all frames are fit just inside the edges of
the workspace.
$!WORKSPACEVIEW FITPAPER
Change the view in the workspace so the entire paper is fit just inside the edges
of the workspace.
$!WORKSPACEVIEW FITSELECTEDFRAMES
Change the view in the workspace so the currently selected frames (that is, the
frames with pick handles) are fit just inside the edges of the workspace.
$!WORKSPACEVIEW LASTVIEW
Return to the previous workspace view.
$!WORKSPACEVIEW MAXIMIZE
Temporarily expand the work area as large as possible. The maximized work
area occupies the entire Tecplot process window.
58
$!WORKSPACEVIEW TRANSLATE
Shift the view of the workspace. This has no effect on the local view within any
frame in your layout.
$!WORKSPACEVIEW UNMAXIMIZE
Returns the workspace to its normal size after it has been expanded after
$!WORKSPACE MAXIMIZE has been used.
$!WORKSPACEVIEW ZOOM
Change the view into the work area. This has no effect on the local view within
any frame in your layout.
$!WRITECOLORMAP
Write the current color map to a file. The <string> is the name of the file to write
to.
$!WRITECURVEINFO
Write out the curve details or the calculated data points for the equation(s) used
to draw the curve for a selected line mapping. The <string> is the name of the file
to write to.
$!WRITEDATASET
Write the data set attached to the current frame to a file. The <string> is the name
of the file to write to.
$!WRITESTYLESHEET
Write the style for the current frame to a file. The <string> is the name of the file
to write to.
59
$!XYLINEAXIS
A SetValue command that assigns attributes for axes in an XY Line plot.
ANIMATESTREAKLINES
Animates previously calculated streaklines to the screen or to a file.
ATTACHINTEGRATIONRESULTS
Attach the text results of the previous integration as a text field in the current
frame.
CALCPARTICLEPATH
Calculate particle paths or streaklines, starting from existing Tecplot
streamtraces.
CALCTURBULENCEFUNCTION
Calculate a turbulence-related function from two variables in the current data
set. Add the result to the data set as a new variable using the function’s name,
or overwrite the variable if it already exists.
CALCULATE
Calculate a Tecplot variable using the specified function and add it to the cur-
rent data set. If the variable already exists in the current data set, it will be re-
calculated.
CALCULATEACCURACY
Calculate the order accuracy of the solution contained in the listed zones. Op-
tionally, plot the overall accuracy versus grid spacing and plot the accuracy at
each grid node.
60
DISPLAYBOUNDARIES
Displays boundaries corresponding to a geometry and boundaries specification
without actually setting the geometry and boundaries. This macro is generally
not useful for those writing macro files, but is recorded when the user clicks the
Display Boundaries button in the Geometry and Boundaries dialog in order to
duplicate the actions of Tecplot that happen in response to that action. See “SET-
GEOMETRYANDBOUNDARIES” on page 241 for a description of the parameters for
this macro.
EXTRACTFLOWFEATURE
Extract and display shock surfaces, vortex cores, or separation and attachment
lines. Shock surfaces are displayed as isosurfaces of a new variable, ShockSur-
face, while vortex cores and separation and attachment lines are displayed as
new zones.
EXTRAPOLATESOLUTION
Perform Richardson extrapolation to estimate the true solution from three input
solutions on grids of successively finer resolution. Two new zones are added to
the current data set. The first contains the extrapolated solution, while the sec-
ond contains the estimated error.
INTEGRATE
Perform an integration over the specified zones. If <set> is not specified, the in-
tegration will be performed over all zones. If PLOTAS is set to TRUE, the integra-
tion results will be plotted in a new frame.
SAVEINTEGRATIONRESULTS
Saves the most recently calculated integration results to a text file.
SETFIELDVARIABLES
Identifies variables in your data, such as velocity, pressure and temperature, for
61
use in analysis.
SETFLUIDPROPERTIES
Set the fluid properties for use by other commands.
SETGEOMETRYANDBOUNDARIES
Specify whether the data represent an axisymmetric flow solution (2D Cartesian
plots only), whether adjacent zones should be considered to be connected at co-
incident faces, and specify zone boundaries and their corresponding boundary
conditions.
SETREFERENCEVALUES
Specify the reference (free-stream) properties of the solution, identify two vari-
ables in the current data set for use with other commands.
SETUNSTEADYFLOWOPTIONS
Identifies time levels for unsteady flow, or specifies that the solution is steady-
state. If the flow is unsteady, the solution time levels are specified in the RAW-
DATA section. The first line of the RAWDATA section must consist of a single inte-
ger indicating the number of solution time levels. This must be followed by the
time levels themselves. Each time level must be on a separate line and must con-
sist of a floating-point number (the solution time), as well as one or more inte-
gers (the zone numbers for that solution time).
<<anchorpos>>
Assign attributes for positioning of objects.
<<areastyle>>
Change settings for the axis grid area.
62
<<axisdetail>>
Assign attributes for axes.
<<axisline>>
Assign attributes for axis lines.
<<axistitle>>
Assign attributes for titles.
<<basicsizelist>>
Assign basic sizes. The units for the values assigned here are dependent on the
parent command. Assignments here do not affect the plot. These assignments
are used only to configure drop-down menus in the interface so the user can
make quick selections.
<<colormapcontrolpoints>>
All contour color maps except the Raw user-defined color map make use of con-
trol points to determine the color distribution. Each control point has a position
and a left and right color. The <<colormapcontrolpoints>> subcommand can con-
tain more than one CONTROLPOINT subcommand.
<<colormapoverride>>
Change settings for a color map override. Color map overrides are used to re-
place a specific band in a contour color map with one of the 16 basic colors.
<<continuouscolor>>
Change settings for continuous color.
63
<<dialogplacement>>
Describes the placement for a dialog.
<<gridarea>>
<<gridlinedetail>>
Change settings for axis gridlines.
<<ijk>>
Set an I-, J- or K-index.
<<indexrange>>
Set an index range.
<<numberformat>>
Set the format used to draw a number.
<<papersize>>
Change dimensions or hardclip offsets for LETTER, DOUBLE, A3, A4,
CUSTOM1 and CUSTOM2 paper sizes.
<<precisegrid>>
<<rect>>
Change settings for a rectangle. The rectangle is defined using two points
(X1,Y1) and (X2,Y2).
64
<<refscatsymbol>>
Set the attributes for the reference scatter symbol.
<<renderconfig>>
Set the attributes for OpenGL rendering.
<<rgb>>
Set a color value by assigning values to its red, green, and blue components.
<<shademap>>
Map colors on the screen to shades of gray for monochrome hardcopy output.
<<symbolshape>>
Set a symbol shape. Symbols can be a geometric shape (circle, square, and so
forth) or an ASCII character.
<<textbox>>
Change settings for the optional box around a text label.
<<textshape>>
Change settings related to text font and character height.
<<ticklabeldetail>>
Change settings for the text used to label axis tick marks.
<<tickmarkdetail>>
Assign attributes for axis tick marks.
65
<<volumeobjectstoplot>>
Specifies what volume objects are to be displayed.
<<xy>>
Change settings for an (X,Y) position.
<<xyz>>
Change settings for an (X, Y, Z) triplet.
<<zebrashade>>
Change zebra shading attributes.
66
$!ACTIVEFIELDMAPS
This chapter lists Tecplot’s macro commands alphabetically. Items within double angle brackets
(<< >>) represent parameter sub-commands that are listed and described in Chapter 10 “Parameter
Subcommands” .
$!ACTIVEFIELDMAPS
Syntax: $!ACTIVEFIELDMAPS <op> <set>
[no parameters]
Description: A SetValue command that changes the set of active field maps (thus changing the active
zones) considered for plotting.
Examples:
Example 2: Add zones 33, 34, 35 and 36 to the set of active field maps:
$!ACTIVEFIELDMAPS + = [33-36]
Example 3: Remove zones 1, 2, 3, 9, 10 and 11 from the set of active field maps:
$!ACTIVEFIELDMAPS - = [1-3,9-11]
$!ACTIVELINEMAPS
Syntax: $!ACTIVELINEMAPS <op> <set>
[no parameters]
Description: A SetValue command that changes the set of line-mappings considered for plotting.
Examples:
Example 1: Make only line-mappings 1, 3, 4 and 5 active for plotting:
$!ACTIVELINEMAPS = [1,3-5]
Example 2: Add line-maps 33, 34, 35 and 36 to the set of active line-mappings:
$!ACTIVELINEMAPS + = [33-36]
67
Example 3: Remove line-maps 1, 2, 3, 9, 10 and 11 from the set of active line-mappings:
$!ACTIVELINEMAPS - = [1-3,9-11]
$!ADDMACROPANELTITLE
Syntax: $!ADDMACROPANELTITLE <string>
[no parameters]
Description: Add a title to the Quick Macro Panel.
Example: The following example adds the title “Bar Charts” to the Quick Macro Panel:
$!ADDMACROPANELTITLE "Bar Charts"
$!ADDONCOMMAND
Syntax: $!ADDONCOMMAND
ADDONID = <string>
COMMAND = <string>
[optional parameters]
Description: Send a command to an add-on. An add-on registers the name of a function that will be
called when an $!ADDONCOMMAND is processed. Tecplot knows which registered
function to call based on the ADDONID string. See the function
TecUtilMacroAddCommandCallback in the Tecplot ADK Reference Manual.
Required Parameters:
Optional Parameters:
Example:
68
$!ALTERDATA
Send the command GO to the add-on that has registered a command processor with an add-on ID of
XPROC:
$!ADDONCOMMAND
ADDONID = "XPROC"
COMMAND = "GO"
$!ALTERDATA
Syntax: $!ALTERDATA [zonelist]
EQUATION = <string>
[optional parameters]
Description: The ALTERDATA function operates on a data set within Tecplot using FORTRAN-like
equations. See the Tecplot User’s Manual for more information on using equations in
Tecplot. The <zonelist> parameter specifies the set of zones on which to operate, where
zonelist is a list of zones or zone ranges separated by a comma (“,”). Zone
ranges are separated by a hyphen (“-”). If <zonelist> is omitted, all zones are
affected. NOTE: the values for the <zonelist> parameter must be enclosed in square
brackets (i.e. $!ALTERDATA [1,3] to apply ALTERDATA to zones 1 and 3).
Required Parameters:
69
Parameter Syntax Default Notes
KRANGE See the note, Range Parameters, for information on
specifying range index values.
{
MIN = <integer> 1
MAX = <integer> 0
SKIP = <integer> 1
}
VALUELOCATION = <valuelocation> AUTO Assign the location to destination variable.
Range Parameters The IRANGE, JRANGE, and KRANGE parameters are used to limit the data
altered by the equation. The specification of range indices follow these rules:
• The number 0 can be used to represent the maximum index m. If the maximum
index m = 15, specifying 0 sets the range index to 15.
• Negative values represent the offset from the maximum index. If a value of -2
is specified, and the maximum index m is 14, the value used is 14-2, or 12.
Examples:
Example 1: The following example adds one to X for all zones for every data point:
$!ALTERDATA [1,3]
EQUATION = "x = x+1"
Example 2: The following example creates a new, double precision variable called DIST:
$!ALTERDATA
EQUATION = "{DIST} = SQRT(X**2 + Y**2)"
DATATYPE = DOUBLE
Example 3: The following equations set a variable called P to zero along the boundary of an IJ-
ordered zone:
$!ALTERDATA
EQUATION = "{P} = 0"
IRANGE {MAX = 1}
$!ALTERDATA
EQUATION = "{P} = 0"
IRANGE {MIN = 0}
$!ALTERDATA
EQUATION = "{P} = 0"
JRANGE {MAX = 1}
70
$!ANIMATECONTOURLEVELS
$!ALTERDATA
EQUATION = "{P} = 0"
JRANGE {MIN = 0}
Example 4:By following a variable reference with brackets “[” and “]” you may designate a
specific zone from which to get the variable value. For example:
V3 = V3 -V3[1]
X = (X[1] + X[2] + X[3]) / 3
{TempAdj} = {Temp}[7] - {Adj}
V7 = V1[19] - 2*C[21] + {R/T}[18]
The zone number must be a positive integer constant less than or equal to the number of zones. The
zone designated must have the same structure (finite-element, I-, IJ-, or IJK-ordered) and dimen-
sions (number of nodes and so forth)
$!ANIMATECONTOURLEVELS
Syntax: $!ANIMATECONTOURLEVELS
START = <integer>
END = <integer>
[optional parameters]
Description: Produce an animation of a contour line plot by showing a single level at a time. The
animation varies according to the currently defined contour levels and is limited by the
values in the START, END, and SKIP parameters. To create an AVI or RM file, add
$!EXPORTSETUP commands before this command.
Required Parameters:
71
$!ANIMATECONTOURLEVELS
START = 1
END = 4
CREATEMOVIEFILE = TRUE
$!ANIMATEIJKBLANKING
Syntax: $!ANIMATEIJKBLANKING
NUMSTEPS = <integer>
[optional parameters]
Description: Produce an animation of different IJK-blankings in your plot. The animation starts at one
IJK-blanking setting and marches through intermediate steps to a second setting. To
create an AVI or RM file, add $!EXPORTSETUP commands before this command.
Required Parameter:
72
$!ANIMATEIJKPLANES
$!ANIMATEIJKPLANES
Syntax: $!ANIMATEIJKPLANES
START = <integer>
END = <integer>
[optional parameters]
Description: Produce an animation that cycles through I-, J- or K-planes in an IJK-ordered data set. To
create an AVI or RM file, add $!EXPORTSETUP commands before this command.
Required Parameters:
73
Optional Parameters:
$!ANIMATEISOSURFACES
Syntax: $!ANIMATEISOSURFACES
STARTVALUE = <double>
ENDVALUE = <double>
[optional parameters]
Description: The macro command $!ANIMATEISOSURFACES produces an animation of a series
of iso-surfaces beginning with the iso-surface defined by STARTVALUE and ending
with the iso-surface defined by ENDVALUE. To create an AVI or RM file, add
$!EXPORTSETUP commands before this command.
Required Parameters:
74
$!ANIMATELINEMAPS
Note: Go To, Loop, Bounce, Forward, and Backward are only used by the interface. Forward and
Backward can be simulated using appropriate values STARTVALUE and ENDVALUE. If END-
VALUE < STARTVALUE, the animation goes 'backward'. If ENDVALUE > STARTVALUE, the
animation goes 'forward'. Goto can be simulated if ENDVALUE == STARTVALUE, i.e. the ani-
mation goes 'one step'. Loop and Bounce can be accomplished by calling the file multiple times.
Note: When recording, the macro recorded contains exactly the animation done in the interface. So
if you bounce three times through the data, you will record three sets of forward and backwards
commands. Similarly, if you use the "one step" options a lot, you will record a lot of individual
macro commands. If you interrupt part way through an animation, you will record a partial anima-
tion macro of those steps you did animate through.
$!ANIMATELINEMAPS
Syntax: $!ANIMATELINEMAPS
START = <integer>
END = <integer>
[optional parameters]
Description: Produce an animation of one Line-mapping at a time. To create an AVI or RM file, add
$!EXPORTSETUP commands before this command.
Required Parameters:
75
$!ANIMATELINEMAPS
START = 2
END = 10
SKIP = 2
$!ANIMATESLICES
Syntax: $!ANIMATESLICES [Group]
START = <integer>
END = <integer>
[optional parameters]
Description: The macro command $!ANIMATESLICES uses the currently defined start and end
slice position. Use $!SLICEATTRIBUTES to set these positions;
$!ANIMATESLICES then redefines how many intermediate slices are to be used,
then animates a sub-set of those slices. To create an AVI or RM file, add
$!EXPORTSETUP commands before this command.
Required Parameters:
76
$!ANIMATESTREAM
Note: When recording, the macro recorded contains exactly the animation done in the interface. So
if you bounce three times through the data, you will record three sets of forward and backwards
commands. Similarly, if you use the "one step" options a lot, you will record a lot of individual
macro commands. If you interrupt part way through an animation, you will record a partial anima-
tion macro of those steps you did animate through.
$!ANIMATESTREAM
Syntax: $!ANIMATESTREAM
[optional parameters]
Description: Produce an animation of stream markers or dashes, moving along the currently defined
streamtrace paths. To create an AVI or RM file, add $!EXPORTSETUP commands
before this command.
Optional Parameters:
77
$!ANIMATETIME
Syntax: $!ANIMATETIME
[optional parameters]
Description: Produce an animation of transient data. To create an AVI or RM file, add
$!EXPORTSETUP commands before this command.
Optional Parameters:
$!ANIMATEZONES
Syntax: $!ANIMATEZONES
START = <integer>
END = <integer>
[optional parameters]
Description: Produce an animation showing one zone at a time. To create an AVI or RM file, add
$!EXPORTSETUP commands before this command. NOTE: this command will not work
if the current frame contains a transient data set.
78
$!ATTACHDATASET
Required Parameters:
$!ATTACHDATASET
Syntax: $!ATTACHDATASET
[optional parameter]
Description: Attach the current frame to the data set of another frame. This command is usually found
only in layout files generated by Tecplot. Note that the $!FRAMEMODE command
automatically executes an $!ATTACHDATASET command if a frame mode is requested
in a frame that does not have an attached data set. Tecplot attaches the data set from the
closest frame (in drawing order) having an attached data set.
Optional Parameter:
Example 1: The following example attaches to the current frame the data set from the second frame
drawn when doing a Redraw All:
$!ATTACHDATASET
FRAME = 2
Example 2: The following example attaches to the current frame the data set from the frame drawn
next-to-last when doing a Redraw All:
79
$!ATTACHDATASET
$!ATTACHGEOM
Syntax: $!ATTACHGEOM
[optional parameters]
<geometryrawdata>
Description: Attach a geometry to the current frame.
Required Parameter:
80
$!ATTACHGEOM
Examples:
Example 1: The following example creates a red circle, with a radius equal to 25 percent of
the height of the frame, in the center of the frame:
$!ATTACHGEOM
POSITIONCOORDSYS = FRAME
ANCHORPOS
{
X = 50
Y = 50
}
GEOMTYPE = CIRCLE
COLOR = RED
RAWDATA
25
Example 2: The following example creates an L-shaped polyline with an arrowhead at the
end:
$!ATTACHGEOM
POSITIONCOORDSYS = FRAME
ANCHORPOS
{
X = 20
Y = 80
}
81
GEOMTYPE = LINESEGS
ARROWHEADATTACHMENT = ATEND
RAWDATA
1
3
0 0
0 -60
40 0
$!ATTACHTEXT
Syntax: $!ATTACHTEXT
TEXT = <string>
[optional parameters]
Description: Attach text to the current frame.
Required Parameter:
82
$!ATTACHTEXT
Example 2: The following example creates the text TEXT AT AN ANGLE and places it in the center
of the frame. The text is drawn at an angle of 45 degrees:
$!ATTACHTEXT
TEXT = "TEXT AT AN ANGLE"
ANGLE = 45
ANCHORPOS {X=50 Y=50}
Example 3: The following example creates the text TIMES-ROMAN using the Times Roman font.
This text includes a text box:
$!ATTACHTEXT
TEXT = "TIMES-ROMAN"
FONT = TIMES
BOX
{
BOXTYPE = PLAIN
MARGIN = 20
}
ANCHORPOS {X=20 Y=20}
83
$!BASICCOLOR
Syntax: $!BASICCOLOR
[optional parameters]
Description: A SetValue command that sets the red, green and blue components for any of the basic
colors in Tecplot.
Optional Parameters:
$!BASICSIZE
Syntax: $!BASICSIZE
[optional parameters]
Description: A SetValue command that sets sizes of various objects like line thicknesses, line pattern
length, font height, and so forth. Sizes can be assigned when interacting with Tecplot by
either entering an exact value or by choosing from a preset list of values. The
$!BASICSIZE command allows you to change the values in the preset lists.
Optional Parameters:
84
$!BLANKING
$!BLANKING
Syntax: $!BLANKING
[optional parameters]
Description: A SetValue command that changes settings for IJK- or value-blanking.
Optional Parameters:
85
Parameter Syntax Notes
{
BLANKENTIRECELL = <boolean> Set to FALSE to get precision-blanking.
Example 2: Use value-blanking to cut away all cells that have at least one node where variable 3 is
less than or equal to 7.5:
$!BLANKING
VALUE
{
INCLUDE = YES
CONSTRAINT 1
{
86
$!BRANCHCONNECTIVITY
INCLUDE = YES
VARA = 3
RELOP = LESSTHANOREQUAL
VALUECUTOFF = 7.5
}
}
$!BRANCHCONNECTIVITY
Syntax: $!BRANCHCONNECTIVITY
ZONE = <integer>
[no optional parameters]
Description: For zones where connectivity is shared, this command allows for branching of
connectivity information from the specified zone.
Required Parameters:
Example: Suppose Zones 2, 3 and 4 share connectivity. This command branches the connectivity of
the second zone. Zones 3 and 4 will still share connectivity.
$!BRANCHCONNECTIVITY
ZONE = 2
$!BRANCHFIELDDATAVAR
Syntax: $!BRANCHFIELDDATAVAR
ZONE = <integer>
VAR = <integer>
[no optional parameters]
Description: Allows for branching of specified variable in the specified zone for zones that share
variables.
Required Parameters:
87
Example: Assume Zones 1, 2 and 4 share variables 3 and 5. This command branches the third
variable from the second zone. Variable 3 will still be shared by zones 1 and 4, while
variable 5 will still be shared by all three zones.:
$!BRANCHFIELDDATAVAR
ZONE = 2
VAR = 3
$!BREAK
Syntax: $!BREAK
[no parameters]
Description: Jump out of the current $!LOOP-ENDLOOP or $!WHILE-$!ENDWHILE.
Example: $!LOOP 5
.
.
.
$!BREAK
.
.
.
$!ENDLOOP
88
$!COLORMAPCONTROL [<groupnumber>] COPYSTANDARD
spaced across the color map. This is equivalent to clicking Redistribute Control Points in
the Color Map dialog. Note that this does not change the RGB values assigned at each
control point. Group number is an optional parameter ranging from 1 to 4, which
defaults to 1 when omitted.
Example: $!COLORMAPCONTROL REDISTRIBUTECONTROLPOINTS
$!COMPATIBILITY
Syntax: $!COMPATIBILITY
[optional parameters]
89
Description: Allow datasharing access and setting, without warning.
Optional Parameters:
$!CONTINUE
Syntax: $!CONTINUE
Description: Transfer control back to nearest $!LOOP or $!WHILE.
Example: $!LOOP 10
.
.
.
$!CONTINUE
.
.
.
$!ENDLOOP
$!CONTOURLABELS ADD
Syntax: $!CONTOURLABELS ADD
[optional parameters]
90
$!CONTOURLABELS DELETEALL
$!CONTOURLABELS DELETEALL
Syntax: $!CONTOURLABELS DELETEALL
[optional parameters]
Description: Delete all currently defined contour labels.
Optional Parameters:
91
$!CONTOURLEVELS [Required-Control Option]
Description: The different commands in the CONTOURLEVELS compound function family are
described separately in the following sections.
The CONTOURLEVELS compound functions are:
$!CONTOURLEVELS ADD
$!CONTOURLEVELS NEW
$!CONTOURLEVELS DELETENEAREST
$!CONTOURLEVELS DELETERANGE
$!CONTOURLEVELS RESET
$!CONTOURLEVELS RESETTONICE
$!CONTOURLEVELS ADD
Syntax: $!CONTOURLEVELS ADD
<contourlevelrawdata>
[optional parameters]
Description: Add a new set of contour levels to the existing set of contour levels.
Required Parameter:
Example: Add contour levels 1.7, 3.4 and 2.9 to the plot:
$!CONTOURLEVELS ADD
RAWDATA
3
1.7
3.4
2.9
92
$!CONTOURLEVELS DELETENEAREST
$!CONTOURLEVELS DELETENEAREST
Syntax: $!CONTOURLEVELS DELETENEAREST
RANGEMIN = <dexp>
[optional parameters]
Description: Delete the contour level whose value is nearest the value supplied in the RANGEMIN
parameter.
Required Parameter:
$!CONTOURLEVELS DELETERANGE
Syntax: $!CONTOURLEVELS DELETERANGE
RANGEMIN = <dexp>
RANGEMAX = <dexp>
[optional parameters]
Description: Delete all contour levels between a minimum and maximum contour value (inclusive).
Required Parameters:
93
RANGEMAX = 0.7
$!CONTOURLEVELS NEW
Syntax: $!CONTOURLEVELS NEW
<contourlevelrawdata>
[optional parameters]
Description: Replace the current set of contour levels with a new set.
Required Parameter:
$!CONTOURLEVELS RESET
Syntax: $!CONTOURLEVELS RESET
NUMVALUES = <integer>
[optional parameters]
Description: Reset the contour levels to a set of evenly distributed values spanning the entire range of
the currently selected contouring variable.
Required Parameter:
94
$!CONTOURLEVELS RESETTONICE
Optional Parameters:
$!CONTOURLEVELS RESETTONICE
Syntax: $!CONTOURLEVELS RESETTONICE
APPROXNUMVALUES = <integer>
[optional parameters]
Description: Reset the contour levels to a set of evenly distributed, nice values spanning the entire
range of the currently selected contouring variable, with a specified number of entries.
Required Parameter:
$!CREATECIRCULARZONE
Syntax: $!CREATECIRCULARZONE
IMAX = <integer>
JMAX = <integer>
[optional parameters]
Description: Create a circular (or cylindrical) IJ- or IJK-ordered zone.
95
Required Parameters:
Example 2: Create a cylindrical 5 by 6 by 8 IJK-ordered zone with the bottom centered at (4, 4, 0)
and the top centered at (4, 4, 7) and a radius of 3:
$!CREATECIRCULARZONE
IMax = 5
JMax = 6
KMax = 8
X = 4
Y = 4
Z1 = 0
Z2 = 7
RADIUS = 3
96
$!CREATECONTOURLINEZONES
$!CREATECONTOURLINEZONES
Syntax: $!CREATECONTOURLINEZONES [group]
[optional parameters]
Description: Create zones from the currently-defined contour lines. One zone can be created from each
contour level in that plot, or one zone for every polyline can be generated.
Optional Parameter:
$!CREATECONTOURLINEZONES
CONTLINECREATEMODE = ONEZONEPERCONTOURLEVEL
$!CREATEFEBOUNDARY
Syntax: $!CREATEFEBOUNDARY
SOURCEZONE = <integer>
[optional parameters]
Description: Zone edges for finite element data cannot be turned on or off using the edge plot layer in
Tecplot. You can, however, create a separate zone which is the boundary of a finite
element zone. This new zone can then be turned on or off.
Required Parameter:
97
$!CREATEFESURFACEFROMIORDERED
Syntax: $!CREATEFESURFACEFROMIORDERED
SOURCEZONES = <set>
[optional parameters]
Description: A FE-Surface zone can be generated from two or more I-Ordered zones. To get the best
possible output, it is recommended that the source zones should have their nodes arranged
in a similar manner so that the connecting lines between points are as straightforward as
possible. For this reason, indices from source zones should increase in the same direction.
Required Parameter:
$!CREATEISOZONES
Syntax: $!CREATEISOZONES
[no parameters]
Description: Create zones from the currently defined iso-surfaces. One zone will be created from each
defined iso-surface. The iso-surfaces must be active and you must have at least one active
volume zone.
Example: $!CREATEISOZONES
$!CREATELINEMAP
Syntax: $!CREATELINEMAP
[no parameters]
Description: Create a new Line-mapping.
Example: $!CREATELINEMAP
98
$!CREATEMIRRORZONES
$!CREATEMIRRORZONES
Syntax: $!CREATEMIRRORZONES
SOURCEZONES = <set>
[optional parameters]
Description: Create new zones that are mirror images of the source zones
Required Parameter:
$!CREATENEWFRAME
Syntax: $!CREATENEWFRAME
[optional parameters]
Description: Creates a new frame.
Optional Parameters:
The default position and size of the initial frame created when Tecplot starts up can be changed in
the Tecplot configuration file.
Example: The following example creates a 5- by 5-inch frame with the upper left hand corner of the
99
frame positioned 2 inches from the left edge of the paper and 1 inch from the top:
$!CREATENEWFRAME
XYPOS
{
X = 2
Y = 1
}
WIDTH = 5
HEIGHT = 5
$!CREATERECTANGULARZONE
Syntax: $!CREATERECTANGULARZONE
[optional parameters]
Description: Create a rectangular zone. If no data set exists when this command is executed, a data set
is created with variables X, Y (and Z, if KMax > 1). If a data set exists prior to this
command, the non-coordinate variables for the zone created are initialized to zero.
Optional Parameters:
100
$!CREATESIMPLEZONE
X2 = 3
Y2 = 9
$!CREATESIMPLEZONE
Syntax: $!CREATESIMPLEZONE
[optional parameters]
<xyrawdata>
Description: Create a new zone by specifying only a list of XY-pairs of data. If other zones exist prior
to using this function and there are more than 2 variables, then the additional variables are
also created and set to zero.
Required Parameter:
$!CREATESLICEZONEFROMPLANE
Syntax: $!CREATESLICEZONEFROMPLANE
[optional parameters]
Description: Create a new zone as a slice through existing 3-D volume zones. Use
$!GLOBALTHREED to define the slicing plane orientation.
101
Optional Parameters:
$!CREATESLICEZONES
Syntax: $!CREATESLICEZONES
[no parameters]
Description: Create a new zone for each slice defined on the Slice Details dialog. Only creates slices
from volume zones.
Example: $!GLOBALCONTOUR VAR = 4
$!SLICEATTRIBUTES ENDPOSITION {X = 1}
$!SLICEATTRIBUTES STARTPOSITION {X = 6}
$!SLICEATTRIBUTES NUMITERMEDIATESLICES = 6
$!SLICEATTRIBUTES SHOWBEGINENDSLICE = YES
$!SLICEATTRIBUTES SHOWINTERMEDIATESLICES = YES
$!REDRAW
$!CREATESLICEZONES
$!CREATESTREAMZONES
Syntax: $!CREATESTREAMZONES
[optional parameters]
102
$!DATASETUP
Description: Create one or more zones out of the currently defined streamtraces. The new zones have
the same number of variables per data point as the other zones in the data set with all non-
coordinate variables interpolated at the positions along the streamtrace.
Optional Parameter:
$!DATASETUP
Syntax: $!DATASETUP
[optional parameters]
Description: A SetValue command that sets miscellaneous parameters related to data.
Optional Parameters:
103
$!DEFAULTGEOM
Syntax: $!DEFAULTGEOM
[optional parameters]
Description: A SetValue command that sets the attributes for the default geometry. When a geometry
is created interactively, its color, line thickness, and so forth, are preset based on the
default geometry. This command is usually used only in the Tecplot configuration file.
Optional Parameters:
$!DEFAULTTEXT
Syntax: $!DEFAULTTEXT
[optional parameters]
104
$!DELAY
Description: A SetValue command that sets the attributes for the default text. When text is added to a
plot interactively, its font, color, size, and so forth, are based on the default text. This
command is usually used only in the Tecplot configuration file.
Optional Parameters:
$!DELAY
Syntax: $!DELAY <integer>
[no parameters]
Description: Delay Tecplot execution for <integer> seconds.
Example: Pause Tecplot for 3 seconds:
$!DELAY 3
$!DELETEAUXDATA
Syntax: $!DELETEAUXDATA
105
AUXDATALOCATION = [zone/var/dataset/frame/linemap]
[optional parameters]
Description: Delete Auxiliary Data in the form of name/value pairs from zones, frames or datasets.
Required Parameters:
Optional Parameters:
$!DELETELINEMAPS
Syntax: $!DELETEMAPS <set>
[no parameters]
Description: Delete one or more Line-mappings. If <set> is omitted then all Line-mappings are
deleted.
Example: Delete Line-mappings 2, 3, 4 and 8:
$!DELETELINEMAPS [2-4,8]
$!DELETEVARS
Syntax: $!DELETEVARS <set>
[no parameters]
Description: Delete one or more variables.
106
$!DELETEZONES
$!DELETEZONES
Syntax: $!DELETEZONES <set>
[no parameters]
Description: Delete one or more zones.
Example: Delete zones 3, 7, 8, 9 and 11:
$!DELETEZONES [3,7-9,11]
$!DOUBLEBUFFER OFF
Syntax: $!DOUBLEBUFFER OFF
[no parameters]
Description: Turn off double buffering; use this command once at the end of a sequence of using the
double buffer.
Example: See $!DOUBLEBUFFER SWAP
$!DOUBLEBUFFER ON
Syntax: $!DOUBLEBUFFER ON
[no parameters]
Description: Turn on double buffering; use this command once at the beginning of a sequence of using
the double buffer. While double buffering is turned on all drawing is sent to the back
107
buffer.
Example: See $!DOUBLEBUFFER SWAP
$!DOUBLEBUFFER SWAP
Syntax: $!DOUBLEBUFFER SWAP
[no parameters]
Description: Swap the back buffer to the front. In other words, copy the image in the back buffer to the
front.
Example: The following example uses the double buffer to show the rotation of a 3-D object:
$!DOUBLEBUFFER ON
$!LOOP 10
$!ROTATE3DVIEW X
ANGLE = 5
$!REDRAW
$!DOUBLEBUFFER SWAP
$!ENDLOOP
$!DOUBLEBUFFER OFF
$!DRAWGRAPHICS
Syntax: $!DRAWGRAPHICS <boolean>
[no parameters]
Description: Turn on or off all graphics drawing. Turning off all graphics during preliminary portions
of a macro file can greatly increase the efficiency of the macro.
Example: Turn off all graphics drawing:
$!DRAWGRAPHICS NO
$!DROPDIALOG
Syntax: $!DROPDIALOG <dialogname>
[no parameters]
Description: Drop a Tecplot interface dialog. This command is mainly useful for the Tecplot demo. To
launch a dialog use $!LAUNCHDIALOG.
108
$!DUPLICATELINEMAP
$!DUPLICATELINEMAP
Syntax: $!DUPLICATELINEMAP
SOURCEMAP = <integer>
DESTINATIONMAP = <integer>
Description: Copy attributes from an existing Line-mapping to another.
Required Parameters:
$!DUPLICATELINEMAP
SOURCEMAP = 3
DESTINATIONMAP = 7
$!DUPLICATEZONE
Syntax: $!DUPLICATEZONE
SOURCEZONE = <integer>
[optional parameters]
Description: Make a copy of an existing zone. You can assign index ranges to create a new zone which
is a subset of the source zone.
Required Parameter:
109
Optional Parameters:
Example 2: Duplicate zone 3 creating a zone which uses only the I-index range from 2 to 7 from the
source zone:
$!DUPLICATEZONE
SOURCEZONE = 3
IRANGE
{
MIN = 2
MAX = 7
}
$!ELSE
Syntax: $!ELSE
[no parameters]
Description: Conditionally handle macro commands. Used when an $!IF statement is FALSE.
110
$!ELSEIF
$!ELSEIF
Syntax: $!ELSEIF <conditionalexp>
Description: Conditionally handle macro commands. Used to create multiple options for statements
should an $!IF statement be FALSE.
Example: $!VARSET |A| = 2
$!IF |A| < 5
$!CREATENEWFRAME
XYPOS
{
X = 1
Y = 1
}
WIDTH = 3
HEIGHT = 3
$!ELSEIF |A| > 5
$!CREATENEWFRAME
XYPOS
111
{
X = 2
Y = 1
}
WIDTH = 5
HEIGHT = 5
$!ELSE
$!CREATENEWFRAME
XYPOS
{
X = 3
Y = 3
}
WIDTH = 9
HEIGHT = 9
$!ENDIF
$!EXPORT
Syntax: $!EXPORT
[no parameters]
Description: Export an image file from Tecplot. See the $!EXPORTSETUP command for details on
setting up the exported image type. The $!EXPORT command is not valid for animation
formats. (AVI and Raster Metafile.)
Example: $!EXPORTSETUP EXPORTFORMAT = PNG
$!EXPORT
$!EXPORTCANCEL
Syntax: $!EXPORTCANCEL
[no parameters]
Description: Cancel out of the current export animation sequence. The animation file being generated
is removed.
Example: $!EXPORTCANCEL
112
$!EXPORTFINISH
$!EXPORTFINISH
Syntax: $!EXPORTFINISH
[no parameters]
Description: Signals the completion of an animation sequence and causes the animation file to be
created. You must call $!EXPORTSTART prior to using $!EXPORTFINISH. This
command is only valid for animation formats. (AVI and Raster Metafile.) You may use
the |EXPORTISRECORDING| intrinsic variable to make sure that an animation
sequence has been initiated.
Example: $!EXPORTSETUP
EXPORTFNAME="rotate.avi"
EXPORTFORMAT=AVI
$!EXPORTSTART
$!LOOP 5
$!ROTATE3DVIEW X
ANGLE=5
$!EXPORTNEXTFRAME
$!ENDLOOP
$!IF "|EXPORTISRECORDING|" =="YES"
$!EXPORTFINISH
$!ENDIF
$!EXPORTNEXTFRAME
Syntax: $!EXPORTNEXTFRAME
[no parameters]
Description: Records the next frame of an animation. You must call $!EXPORTSTART prior to
calling $!EXPORTNEXTFRAME. This command is only valid for animation formats.
(AVI and Raster Metafile. You may use the |EXPORTISRECORDING| intrinsic
variable to make sure that an animation sequence has been initiated.)
Example: $!EXPORTSETUP
EXPORTFNAME="rotate.avi"
EXPORTFORMAT=AVI
$!EXPORTSTART
$!LOOP 5
$!ROTATE3DVIEW X
ANGLE=5
$!EXPORTNEXTFRAME
$!ENDLOOP
113
$!EXPORTFINISH
$!EXPORTSETUP
Syntax: $!EXPORTSETUP
[optional parameters]
Description: A SetValue command that sets the attributes for exporting image files from Tecplot.
Exporting is usually intended as a means to transfer images from Tecplot to be imported
by other applications. See $!PRINTSETUP and $!PRINT for generating output
intended for printers and plotters.
Optional Parameters:
114
$!EXPORTSTART
$!EXPORTSTART
Syntax: $!EXPORTSTART
[no parameters]
Description: Signals the start of an animation sequence and records the first frame of the animation.
This command is only valid for animation formats. (AVI and Raster Metafile.)
Example: $!EXPORTSETUP
EXPORTFNAME="rotate.avi"
EXPORTFORMAT=AVI
EXPORTREGION = CURRENTFRAME
$!EXPORTSTART
$!LOOP 5
$!ROTATE3DVIEW X
ANGLE=5
$!EXPORTNEXTFRAME
$!ENDLOOP
$!EXPORTFINISH
$!EXTRACTFROMGEOM
Syntax: $!EXTRACTFROMGEOM
[optional parameters]
Description: Extract data from a 2- or 3-D field plot. The locations at which to extract the data come
from a polyline geometry that must be picked prior to issuing this command.
Optional Parameters
115
NUMPTS = 20
EXTRACTTOFILE = TRUE
FNAME = "extract.dat"
$!EXTRACTFROMPOLYLINE
Syntax: $!EXTRACTFROMPOLYLINE
[optional parameters]
<xyzrawdata>
Description: Extract data from a 2- or 3-D field plot. The locations of where to extract the data from
come from a supplied polyline in the form of <xyzrawdata>.
Optional Parameters
116
$!FIELDLAYERS
6 9 0
$!FIELDLAYERS
Syntax: $!FIELDLAYERS
[optional parameters]
Description: A SetValue command that turns field plot layers on or off, or sets the 2-D draw order.
Optional Parameters:
$!FIELDMAP
Syntax: $!FIELDMAP [<set>]
[optional parameters]
Description: A SetValue command that assigns zone attributes for field plots. The <set> parameter
immediately following the $!FIELDMAP command is optional. If <set> is omitted then
the assignment is applied to all zones. Otherwise the assignment is applied only to the
zones specified in <set>.
Optional Parameters:
117
Parameter Syntax Notes
COLOR = <color>
CONTOURTYPE = <meshtype>
FLOODCOLORING = <contourcoloring>
LINECONTOURGROUP = <integer>
LINEPATTERN = <linepattern>
LINETHICKNESS <op> <dexp>
PATTERNLENGTH <op> <dexp>
SHOW = <boolean>
USELIGHTINGEFFECT = <boolean>
}
EDGELAYER
{
COLOR = <color>
EDGETYPE = <edgetype>
IEDGE = <borderlocation> Applies for IJ-, IK-, and IJK-ordered zones.
JEDGE = <borderlocation> Applies for IJ-, IK-, and IJK-ordered zones.
KEDGE = <borderlocation> Applies for IJ-, IK-, and IJK-ordered zones.
LINETHICKNESS = <dexp>
SHOW = <boolean>
USEBLANKING = <boolean>
}
EFFECTS
{
LIGHTINGEFFECT = <lightingeffect>
SURFACETRANSLUCENCY <translucency> SURFACETRANSLUCENCY range is one to
99.
USETRANSLUCENCY = <boolean>
USEVALUEBLANKING = <boolean> Set to TRUE to include value blanking in the
specified zones
}
MESH
{
COLOR = <color>
LINEPATTERN = <linepattern>
LINETHICKNESS <op> <dexp>
MESHTYPE = <meshtype>
PATTERNLENGTH <op> <dexp>
SHOW = <boolean>
}
POINTS
{
IJKSKIP <<ijk>> Limits the number of vectors or scatter symbols
drawn.
POINTSTOPLOT <pointstoplot>
}
SCATTER
{
COLOR = <color>
FILLCOLOR = <color>
118
$!FIELDMAP
Examples: Example 1:Change the contour plot type to flood for zones 1-12:
$!FIELDMAP [1-12]
CONTOUR
{
CONTOURTYPE = FLOOD
}
119
Example 2: Change the mesh color to red for all zones:
$!FIELDMAP
MESH
{
COLOR = RED
}
$!FILECONFIG
Syntax: $!FILECONFIG
[optional parameters]
Description: A SetValue command that sets file path information in Tecplot.
Optional Parameters:
120
$!FILECONFIG
121
Parameter Syntax Default Notes
UNLOADSTRATEGY = <unloadstrategy> AUTO Set the unload strategy for load-
on-demand. If set to AUTO
Tecplot will unload unused
variables when the amount needed
RAM begins to reach the
maximum amount of RAM. If set
to NEVERUNLOAD Tecplot
will load variables on demand but
will never attempt to unload them
even if it is running low on
memory. If set to
MINIMIZEMEMORYUSE
Tecplot will aggressively unload
variables as soon as they are not
needed regardless of the amount
of memory available or in use.
}
MEMORYMAPPEDIOTHRESHOLD = <integer> Minimum size (in bytes) of data
before Tecplot will consider using
memory mapped I/O. If the value
is zero Tecplot will let the
operating system decide which is
usually the best choice.
TEMPFILEPATH = <string> Set the directory where you want
Tecplot to store its temporary
files.
USEMEMORYMAPPEDIO = <boolean> TRUE If TRUE, Tecplot will use the
operating system's memory
mapped I/O facility to read data
faster whenever possible
File Name Filters:Valid characters are upper or lowercase A-Z, and 0-9. Each filter should be
preceded by (*.). or it will not filter properly. On Windows, to allow more than one extension, sep-
arate them with a semicolon (;). On UNIX multiple extensions will not filter correctly unless they
follow the standard UNIX shell filter format.
Windows Example:This example filters all four extensions when opening a layout file.
122
$!FONTADJUST
*.[ae][el][kt]"}
Motif Example:This example filters .dat, .cam, and more. The default extension is .dat
because D and T are the first letters presented within the brackets.
$!FILECONFIG
DATAFILEVARLOADMODE = BYPOSITION
TEMPFILEPATH = "/usr/tmp"
LAYOUTCONFIG {USERELATIVEPATHS = TRUE}
FNAMEFILTER
{
INPUTDATAFILE = "*.[pd][la]t"
COLORMAPFILE = "*.clr"
}
$!FONTADJUST
Syntax: $!FONTADJUST
[optional parameters]
Description: A SetValue command that sets character spacing and sizing for fonts in Tecplot. These
parameters are rarely changed.
Optional Parameters:
123
$!FRAMECONTROL [Required-Control Option]
Description: The different commands in the FRAMECONTROL compound function family are
described separately in the following sections.
The FRAMECONTROL compound functions are:
$!FRAMECONTROL DELETETOP
$!FRAMECONTROL FITALLTOPAPER
$!FRAMECONTROL POP
$!FRAMECONTROL POPATPOSITION
$!FRAMECONTROL PUSHTOP
$!FRAMECONTROL POPBYNAME
$!FRAMECONTROL PUSHBYNAME
$!FRAMECONTROL DELETETOP
Syntax: $!FRAMECONTROL DELETETOP
[no parameters]
Description: Delete the top (active) frame. If there is only one frame when this is called, a new empty
frame is automatically created after this command is executed. (Thus, you can never have
a workspace without at least one frame.)
Example: $!FRAMECONTROL DELETETOP
$!FRAMECONTROL FITALLTOPAPER
Syntax: $!FRAMECONTROL FITALLTOPAPER
[no parameters]
Description: Resize all frames so that they fit inside the hardclip limits of the paper.
Example: $!FRAMECONTROL FITALLTOPAPER
$!FRAMECONTROL POP
Syntax: $!FRAMECONTROL POP
[optional parameters]
Description: Pop a frame to the top (make it the active frame).
124
$!FRAMECONTROL POPATPOSITION
Optional Parameter:
$!FRAMECONTROL POPATPOSITION
Syntax: $!FRAMECONTROL POPATPOSITION
X = <dexp>
Y = <dexp>
Description: Pop the top most frame at a specified position on the paper.
Required Parameters:
$!FRAMECONTROL POPBYNAME
Syntax: $!FRAMECONTROL POPBYNAME
NAME = <string>
Description: Pop the specified frame to the top of the view stack.
Example: $!FRAMECONTROL POPBYNAME
NAME = "BANANA"
125
$!FRAMECONTROL PUSH
Syntax: $!FRAMECONTROL PUSH
[optional parameters]
Description: Push a frame to the bottom of the frame stack (it is given the frame number 1 and
therefore drawn first).
Optional Parameter:
$!FRAMECONTROL PUSHBYNAME
Syntax: $!FRAMECONTROL PUSHBYNAME
NAME = <string>
Description: Push the specified frame to the bottom of the view stack.
Example: $!FRAMECONTROL PUSHBYNAME
NAME = "BANANA"
$!FRAMECONTROL PUSHTOP
Syntax: $!FRAMECONTROL PUSHTOP
[no parameters]
Description: Push the top (active) frame to the bottom.
Example: $!FRAMECONTROL PUSHTOP
$!FRAMELAYOUT
Syntax: $!FRAMELAYOUT
[optional parameters]
Description: A SetValue command that sets the position, border, and background attributes for the
current frame. Use the $!FRAMECONTROL action command to push and pop frames if
you want to change the settings for a frame other than the current frame.
126
$!FRAMENAME
Optional Parameters:
$!FRAMENAME
Syntax: $!FRAMENAME = <string>
[no parameters]
Description: Set the name for the current frame.
Example: $!FRAMENAME = "Pressure Contours for well 33"
$!FRAMESETUP
Syntax: $!FRAMESETUP
[optional parameters]
Description: A SetValue command that sets parameters used to preset dynamic frame attributes when
a frame is initialized.
127
Optional Parameters:
$!GETAUXDATA
Syntax: $!GETAUXDATA <macrovar>
AUXDATALOCATION = [zone/var/dataset/frame/linemap]
NAME = <string>
[optional parameters]
Description: Retrieve Auxiliary Data in the form of name/value pairs and save it to the macrovariable.
Required Parameters:
128
$!GETCONNECTIVITYREFCOUNT
Optional Parameters:
Example: Get the Auxiliary Data from Zone 2, and store it in the macro variable |ABC|:
$!GETAUXDATA |ABC|
AUXDATALOCATION = zone
NAME = ’ABC.Aux.Data’
ZONE = 2
$!GETCONNECTIVITYREFCOUNT
Syntax: $!GETCONNECTIVITYREFCOUNT <macrovar>
ZONE = <integer>
[no optional parameters]
Description: Fetch the count of how many zones share connectivity with the specified zone. Count
includes specified zone.
Required Parameters:
Example: Fetch the connectivity count from Zone 2, and store it in the macro variable |ABC|. If
zones 2, 5 and 6 share connectivity, |ABC| = 3.:
$!GETCONNECTIVITYREFCOUNT |ABC|
ZONE = 2
$!GETCURFRAMENAME
Syntax: $!GETCURFRAMENAME <macrovar>
[no parameters]
Description: Query Tecplot for the name of the current frame. The <macrovar> represents
the macro variable to receive the results.
Example: Put the name of the current frame into the macro variable |CFRAME|.
129
$!GETCURFRAMENAME |CFRAME|
$!GETFIELDVALUE
Syntax: $!GETFIELDVALUE <macrovar>
ZONE = <integer>
VAR = <integer>
INDEX = <integer>
Description: Fetch the field value (data set value) at the specified point index and assign the value to
<macrovar>. If the zone referenced is IJ- or IJK-ordered, then the point index is
calculated by treating the 2- or 3-dimensional array as a 1-D array.
Required Parameters:
Example: A data set contains 2 zones and 3 variables. Zone 2 is dimensioned 5 by 3. Fetch the
value from variable 3 at I-, J-location 2, 2, and store it in the macro variable |ABC|:
$!GETFIELDVALUE |ABC|
ZONE = 2
VAR = 3
INDEX = 7
Note: INDEX was calculated using:
INDEX = I + (J-1)*|MAXI| + (K-1) * |MAXI| * |MAXJ|
= 5*(2-1)+2
= 7
$!GETFIELDVALUEREFCOUNT
Syntax: $!GETFIELDVALUEREFCOUNT <macrovar>
ZONE = <integer>
VAR = <integer>
[no optional parameters]
Description: Get the count of how zones many share the indicated variable with the specified zone.
Count includes the specified zone.
130
$!GETNODEINDEX
Required Parameters:
Example: A data set contains 5 zones and 3 variables. Zones 1, 2 and 4 share variable 3, and zones
3 and 5 share variable three.
$!GETFIELDVALUEREFCOUNT |ABC|
ZONE = 2
VAR = 3
This returns |ABC| = 3, while
$!GETFIELDVALUEREFCOUNT |DEF|
ZONE = 5
VAR = 3
returns |DEF| = 2 because the variable is not shared across all five zones.
$!GETNODEINDEX
Syntax: $!GETNODEINDEX = <macrovar>
ZONE = <integer>
ELEMENT = <integer>
CORNER = <integer>
[no optional parameters]
Description: This function only works for finite-element zones. Query for the node index in the
specified location as described by the ZONE, ELEMENT, and CORNER parameters.
Required Parameter:
131
CORNER = 3
... Do something with |INDEX|...
$!ENDIF
$!GETVARLOCATION
Syntax: $!GETVARLOCATION <macrovar>
ZONE = <integer>
VAR = <integer>
Description: Returns the location of the variable in the zone as either CELLCENTERED or NODAL
and saves in the macro variable.
Required Parameter:
$!GETVARNUMBYNAME
Syntax: $!GETVARNUMBYNAME <macrovar>
NAME = <string>
Description: Given a variable name, get the number for that variable. This variable number can then be
used to assign attributes, such as what variable to use for contouring.
Required Parameter:
132
$!GETZONETYPE
$!GLOBALCONTOUR
VAR = |PVARNUM|
$!GETZONETYPE
Syntax: $!GETZONETYPE = <macrovar>
ZONE = <integer>
[no optional parameters]
Description: Query for the zone type of the specified zone. The zone type will be assigned to
<macrovar>. The possible return values are:
"ORDERED"
"FETRIANGLE"
"FEQUAD"
"FETETRA"
"FEBRICK"
Required Parameter:
$!GLOBALCOLORMAP
Syntax: $!GLOABLCOLORMAP [<groupnumbers>]
[optional parameters]
Description: A SetValue command that changes the settings for the global contour color map and the
global light source shading color map in Tecplot. Changes here affect all frames using
these color maps. See $!GLOBALCONTOUR COLORMAPFILTER for additional settings
that can be applied on a frame-by-frame basis.
133
Optional Parameters:
$!GLOBALCONTOUR
Syntax: $!GLOBALCONTOUR [<contourgroup>]
[optional parameters]
Description: A SetValue command that changes global attributes associated with contour plots or
contour levels. <contourgroup> refers to the defined contour groups, C1-C4, allowed in
Tecplot, and takes an integer value of one through four. The <contourgroup> parameter is
optional, and if omitted, C1 will be treated as current.
The NUMBERFORMAT setting for LABELS also controls the number format in the legend.
134
$!GLOBALCONTOUR
Optional Parameters:
135
Parameter Syntax Default Notes
DEFNUMLEVELS = <integer> Sets the target
number of
contour levels
for situations
where contour
levels are
automatically
reset. Tecplot
will attempt to
create levels
where the start,
end and
increment
values are all
clipped floating
point values.
LABELS
{
ALIGNAUTOLABELS = <boolean> If TRUE,
automatic labels
are aligned with
the contour
lines, otherwise
they are
horizontal.
AUTOLABELSPACING <op> <dexp>
AUTOLEVELSKIP <op> <integer> Value is in Y-
frame units.
COLOR = <color>
FILLCOLOR = <color>
GENERATEAUTOLABELS = <boolean> If TRUE,
automatic labels
are repositioned
on each redraw.
ISFILLED = <boolean>
LABELWITHVALUE = <boolean> If TRUE,
automatic labels
show the
contour value
otherwise they
show the
contour level
number.
MARGIN <op> <dexp>
NUMFORMAT <<numberformat>>
SHOW = <boolean>
TEXTSHAPE <<textshape>> Not allowed to
change size
units parameter.
}
LEGEND
{
ANCHORALIGNMENT <anchoralignment>
AUTORESIZE = <boolean>
AUTOSIZEMAXLIMIT = <double>
136
$!GLOBALCONTOUR
$!GLOBALCONTOUR [1]
LEGEND
{
SHOW = YES
}
COLORCUTOFF
{
RANGEMIN = 3
RANGEMAX = 5
INCLUDEMIN = TRUE
INCLUDEMAX = TRUE
}
COLORMAPFILTER
{
REVERSECOLORMAP = TRUE
COLORMAPOVERRIDEACTIVE = TRUE
COLORMAPOVERRIDE 1
{
INCLUDE = YES
COLOR = YELLOW
STARTLEVEL = 7
137
ENDLEVEL = 9
}
}
$!GLOBALEDGE
Syntax: $!GLOBALEDGE
Description: A SetValue command that sets attributes which sets the minimum crease angle for edges.
Optional Parameters:
$!GLOBALFRAME
Syntax: $!GLOBALFRAME
[optional parameters]
Description: A SetValue command that sets attributes which apply to all frames.
Optional Parameters:
$!GLOBALLINEPLOT
Syntax: $!GLOBALLINEPLOT
138
$!GLOBALLINEPLOT
[optional parameters]
Description: A SetValue command that changes global attributes associated with Line-plots.
Optional Parameters:
139
}
}
$!GLOBALPOLAR
Syntax: $!GLOBALPOLAR
[optional parameters]
Description: Allows polar plots to have curved lines that are interpolated along the R-Axis between
data points.
Optional Parameters:
140
$!GLOBALSCATTER
Optional Parameters:
$!GLOBALSCATTER
Syntax: $!GLOBALSCATTER
[optional parameters]
Description: A SetValue command that changes global attributes associated with scatter plots.
141
Optional Parameters:
142
$!GLOBALTHREED
$!GLOBALTHREED
Syntax: $!GLOBALTHREED
[optional parameters]
Description: A SetValue command that changes global attributes associated with 3-D plots.
Optional Parameters:
143
Parameter Syntax Default Notes
FORCEGOURADFOR3DCONTFLOOD = <boolean> TRUE
FORCEPANELEDFOR3DCELLFLOOD = <boolean> TRUE
LIGHTSOURCE
{
BACKGROUNDLIGHT = <double>
INCLUDESPECULAR = <boolean> FALSE
INTENSITY = <double>
SPECULARINTENSITY = <integer> Range = 1-100
SPECULARSHININESS = <integer> Range = 1-100
SURFACECOLORCONTRAST = <double>
XYZDIRECTION <<xyz>> Always specify all three
components here. Tecplot
normalizes X, Y and Z after
processing the Z-component.
X, Y and Z represent a vector
in the eye coordinate system.
}
LINELIFTFRACTION <op> <dexp>
PERFORMEXTRA3DSORTING <boolean>
ROTATEORIGIN <<xyz>>
SLICE
{
ORIGIN <<xyz>>
NORMAL <<xyz>>
}
SYMBOLLIFTFRACTION <op> <dexp>
VECTORLIFTFRACTION <op> <dexp>
Example: $!GLOBALTHREED ROTATEORIGIN{X = 4.36052333891}
$!GLOBALTHREED
LIGHTSOURCE
{
XYZDIRECTION
{
X = 0.398226616447
Y = 0.435028248588
Z = 0.807567944438
}
}
$!GLOBALTHREED LIGHTSOURCE{INTENSITY = 80}
$!GLOBALTHREED LIGHTSOURCE{BACKGROUNDLIGHT = 25}
$!GLOBALTHREED LIGHTSOURCE{SURFACECOLORCONTRAST = 85}
$!GLOBALTHREED LINELIFTFRACTION = 7
$!GLOBALTHREED SYMBOLLIFTFRACTION = 0.5
$!GLOBALTHREED VECTORLIFTFRACTION = 6
$!GLOBALTHREED PERFORMEXTRA3DSORTING = YES
144
$!GLOBALTHREEDVECTOR
$!GLOBALTHREEDVECTOR
Syntax: $!GLOBALTHREEDVECTOR
[optional parameters]
Description: A SetValue command that changes global attributes associated with 3-D vector plots.
Optional Parameters:
145
USERELATIVE = FALSE
UNIFORMLENGTH = 5
HEADSIZEASFRACTION = .2
REFVECTOR
{
SHOW = FALSE
}
$!GLOBALTIME
Syntax: $!GLOBALTIME SolutionTime
Description: A SetValue command for frames (2D and 3D ONLY). Different frames can have
different values of $!GLOBALTIME
$!GLOBALTWODVECTOR
Syntax: $!GLOBALTWODVECTOR
[optional parameters]
Description: A SetValue command that changes global attributes associated with 2-D vector plots.
Optional Parameters:
146
$!IF...$!ENDIF
$!IF...$!ENDIF
Syntax: $!IF <conditionalexp>
$!ENDIF
Description: Conditionally process macro commands.
Example 1: Process macro commands if the macro variable |myvar| is less than 73.2:
$!IF |myvar| < 73.2
147
.
.
.
$!ENDIF
Example 2: Process macro commands if the macro variable |response| is YES:
$!IF "|response|" == "YES"
.
.
.
$!ENDIF
$!INCLUDEMACRO
Syntax: $!INCLUDEMACRO <string>
Description: Insert the commands from another macro file. Because the $!INCLUDEMACRO
command is processed when the macro is loaded and not when the macro is executed,
you are not allowed to reference macro variables within the <string> parameter.
Example: Include the macro file m2.mcr:
$!INCLUDEMACRO "m2.mcr"
$!INTERFACE
Syntax: $!INTERFACE
[optional parameters]
Description: A SetValue command that sets attributes related to the Tecplot interface.
Optional Parameters:
148
$!INTERFACE
149
Parameter Syntax Notes
DIALOGPLACEMENT The DIALOGPLACMENT
{ parameter may only appear
in the tecplot config file. You
ADVANCED3DCONTROLDIALOG <<dialogplacement>> may specify the placement
ANCHORALIGNMENT <<dialogplacement>> of the indicated dialogs.
ANCHORHORIZONTALINSIDE <<dialogplacement>> Dialog placement is relative
ANCHORVERTICALINSIDE <<dialogplacement>> to the main Tecplot window.
AXISEDITDIALOG <<dialogplacement>>
COLORMAPDIALOG <<dialogplacement>>
CONTOURDIALOG <<dialogplacement>>
CREATE1DLINEDIALOG <<dialogplacement>>
CREATECIRCULARZONEDIALOG <<dialogplacement>>
CREATERECTANGULARZONEDIALOG <<dialogplacement>>
CREATEZONEFROM POLYLINESDIALOG <<dialogplacement>>
CREATEZONEFROMVALUESDIALOG <<dialogplacement>>
CURVEINFODIALOG <<dialogplacement>>
DATAINFODIALOG <<dialogplacement>>
DATALABELSDIALOG <<dialogplacement>>
DATASPREADSHEETDIALOG <<dialogplacement>>
DELETEVARIABLESDIALOG <<dialogplacement>>
DELETEZONESDIALOG <<dialogplacement>>
DEPTHBLANKINGDIALOG <<dialogplacement>>
DUPLICATEZONEDIALOG <<dialogplacement>>
EQUATIONDIALOG <<dialogplacement>>
EXPORTDIALOG <<dialogplacement>>
EXTRACTCONTOURLINESDIALOG <<dialogplacement>>
EXTRACTDISCRETEPOINTSDIALOG <<dialogplacement>>
EXTRACTFEBOUNDARYDIALOG <<dialogplacement>>
EXTRACTISOSURFACESDIALOG <<dialogplacement>>
EXTRACTPOINTSFROMGEOMETRYDIALOG <<dialogplacement>>
EXTRACTPOINTSFROMPOLYLINEDIALOG <<dialogplacement>>
EXTRACTSLICEFROMPLANEDIALOG <<dialogplacement>>
EXTRACTSLICESDIALOG <<dialogplacement>>
EXTRACTSTREAMTRACESDIALOG <<dialogplacement>>
EXTRACTSUBZONEDIALOG <<dialogplacement>>
IJKBLANKINGDIALOG <<dialogplacement>>
IMPORTDIALOG <<dialogplacement>>
INVERSEDISTANCEINTERPOLATIONDIALOG <<dialogplacement>>
IOFFSET <<dialogplacement>>
JOFFSET <<dialogplacement>>
ISOSURFACESDIALOG <<dialogplacement>>
KRIGINGINTERPOLATIONDIALOG <<dialogplacement>>
LIGHTSOURCEDIALOG <<dialogplacement>>
LINEARINTERPOLATIONDIALOG <<dialogplacement>>
LINEMAPLEGENDDIALOG <<dialogplacement>>
LOADDATADIALOG <<dialogplacement>>
MACROPLAYDIALOG <<dialogplacement>>
MACRORECORDDIALOG <<dialogplacement>>
MACROVIEWERDIALOG <<dialogplacement>>
150
$!INTERFACE
151
Parameter Syntax Notes
INITIALPLOTFIRSTZONEONLY = <boolean> If TRUE, only the first
enabled zone is activated.
Default shows all zones
(except from within a
layout).
INITIALPLOTTYPE = <plottype> Default is Automatic
INTERRUPTCHECKINGFREQUENCY = <integer> Set the number of
milliseconds between checks
for a key- or button-press by
the user to interrupt
processing in Tecplot.
LISTCOMMANDSINMACROVIEWER = <boolean> If FALSE, macro commands
are displayed in full one at a
time.
LOADADDONSUSINGLAZYRELOCATE = <boolean> If set to FALSE, all add-on
symbols are loaded
immediately.
MAXCUSTOMCOLORSININTERFACE = <integer> UNIX only. Valid values are
1 to 56. Some UNIX
displays cannot allocate
enough colors for the
Tecplot interface. Use this
option to limit the number of
custom colors displayed in
the Tecplot interface.
MAXNUMUNDOLEVELS = <integer>
MINPIXELSFORDRAG <integer> Number of pixels to move
the pointer before it is
considered a drag.
MOUSEACTIONS
{
MIDDLEBUTTON <mousebuttonclick>
{
BUTTONCLICK <mousebuttondrag>
SIMPLEDRAG <mousebuttondrag>
CONTROLLEDDRAG <mousebuttondrag>
ALTEDDRAG <mousebuttondrag>
SHIFTEDDRAG <mousebuttondrag>
CONTROLALTEDDRAG <mousebuttondrag>
CONTROLSHIFTEDDRAG <mousebuttondrag>
ALTSHIFTEDDRAG <mousebuttondrag>
CONTROLALTSHIFTEDDRAG <mousebuttondrag>
}
RIGHTBUTTON
{
BUTTONCLICK <mousebuttondrag>
SIMPLEDRAG <mousebuttondrag>
CONTROLLEDDRAG <mousebuttondrag>
ALTEDDRAG <mousebuttondrag>
SHIFTEDDRAG <mousebuttondrag>
CONTROLALTEDDRAG <mousebuttondrag>
CONTROLSHIFTEDDRAG <mousebuttondrag>
152
$!INTERFACE
153
Parameter Syntax Notes
ALLOWHWACCELERATION = <boolean> Windows only. This will
disable hardware
acceleration for Tecplot
without having to change the
Windows Display
Properties.
Setting
ALLOWHWACCELERATI
ON to NO may fix errors
caused by hardware
acceleration on buggy
graphics card drivers.
SCREENRENDERING <<renderconfig>>
IMAGERENDERING <<renderconfig>>
MAXFILTERMAGNIFICATION = <integer> Sets the maximum
magnification by non-texture
resize filer before textures
are used. This keeps Tecplot
from creating textures which
are too large. Setting this
above three is not
recommended, although
setting below 1.0 will result
in the use of a faster texture
algorithm.
}
PERCENTAGEOFPOINTSTOKEEP = <integer> Sets the percentage of points
to keep in a frame when a
frame is approximated.
See the Tecplot User’s
Manual for a complete
description.
PICKHANDLEWIDTH <op> <dexp> Value is in inches on the
screen.
PLOTAPPROXIMATIONMODE = <plotapproximationmode> Specifies the mode in which
you want the plots to be
approximated. See the
Tecplot User’s Manual for a
complete description of each
mode.
PRINTDEBUG = <boolean> If TRUE, debugging
information is sent to the
standard output.
QUICKCOLORMODE = <quickcolormode> Choose objects for color
changes made using the
Quick Edit dialog
ROTATION Settings for interactive
rotations in 3-D.
{
ROTATIONMODE = <rotationmode>
CURRENTANGLE = <op> <dexp>
SMALLANGLE = <op> <dexp>
MEDIUMANGLE = <op> <dexp>
LARGEANGLE = <op> <dexp>
ROTATEDEGPERFRAMEUNIT = <integer>
SHOWGEOMS = <boolean>
154
$!INTERFACE
155
Parameter Syntax Notes
USEMOD2MASKFORALTDETECTION = <boolean> Certain platforms have a
problem with the ALT key.
Set to TRUE to bypass the
problem.
UNIXHELPBROWSERCMD = <string> Sets the command used to
launch a browser for add-ons
that use HTML for their help
file (UNIX only; Windows
automatically connects to
primary browser). For
security reasons this
command can only be used
in the Tecplot configuration
file.
UNIXTRUETYPEFONTPATH = <string> Path to where true type fonts
are stored.
USEAPPROXIMATEPLOTS = <boolean> Set to TRUE to use
approximate plots. This will
speed up any interactive
rotations and translations,
and many other actions as
well.
USEDISPLAYLISTS = <boolean>
USEDOUBLEBUFFERING = <boolean>
USEDOUBLEFORDISPLAYLISTS = <boolean>
USEFASTAPPROXCONTINUOUSFLOOD = <boolean>
USEDISPLAYLISTS = <boolean> Use stroke fonts for data
labels and ASCII scatter
symbols in 3-D plots.
USEOFFSCREENBITMAP = <boolean> Set to TRUE to render
images off-screen.
USESTROKEFONTSFOR3DTEXT = <boolean> Set to TRUE to use Tecplot’s
internal stroke fonts, set to
FALSE to use true type
fonts. This option is only
available under Windows.
USESTROKEFONTSFORSMALLSCREENTEXT = <boolean> When using True Type fonts,
switch to stroke fonts for
small characters.
USESTROKEFONTSONSCREEN = <boolean> This applies to Windows
only. Set to TRUE to use
Tecplot’s printer drivers. Set
to FALSE to use Windows
printer drivers.
USETECPLOTPRINTDRIVERS = <boolean>
XORCOLOR <op> <integer> Color index to use for
XORed lines. Set to 0 to
make Tecplot calculate.
ZONEMAPNAMECOLUMNWIDTH = <double> Range is 10-1000. Sets the
width of the Zone/Map
Name column under Plot
Attributes.
Example: This example does the following:
• Makes the frame borders show on the screen when they are turned off.
156
$!INVERSEDISTINTERPOLATE
$!INVERSEDISTINTERPOLATE
Syntax: $!INVERSEDISTINTERPOLATE
DESTINATIONZONE = <integer>
[optional parameters]
Description: Interpolate selected variables from one or more zones onto a destination zone using the
inverse distance method.
Required Parameter:
157
Parameters Syntax Default Notes
INVDISTMINRADIUS = <dexp> 0.0
SOURCEZONES = <set> All zones except
destination zone.
VARLIST = <set> All variables except Choose the variables to interpolate.
spatial variables. The spatial variables (X, Y and Z if
3-D) are not allowed.
Example: Interpolate variables 7-10 from zone 4 to zone 2:
$!INVERSEDISTINTERPOLATE
SOURCEZONES = [4]
DESTINATIONZONE = 2
VARLIST = [7-10]
$!ISOSURFACEATTRIBUTES
Syntax: $!ISOSURFACEATTRIBUTES [<group]
[optional parameters]
Description: A SetValue command which changes attributes associated with iso-surfaces. The optional
group parameter can range from 1-4 and defaults to 1 when absent.
Optional Parameters:
158
$!ISOSURFACELAYERS
$!ISOSURFACELAYERS
Syntax: $!ISOSURFACELAYERS
Required Parameters:
$!KRIG
Syntax: $!KRIG
159
DESTINATIONZONE = <integer>
[optional parameters]
Description: Interpolate selected variables from a set of source zones to a destination zone using the
kriging method.
Required Parameter:
$!LAUNCHDIALOG
Syntax: $!LAUNCHDIALOG <dialogname>
[no parameters]
Description: Launch a Tecplot interface dialog; This command is mainly useful for the Tecplot demo.
Example: Launch Tecplot’s Macro Viewer dialog:
$!LAUNCHDIALOG MACROVIEWER
$!LIMITS
Syntax: $!LIMITS
[optional parameters]
160
$!LINEARINTERPOLATE
Description: A SetValue command that sets some of the internal limits in Tecplot. See Tecplot User’s
Manual for the default values for these limits. The $!LIMITS command can only be
used in the Tecplot configuration file.
Optional Parameters:
$!LINEARINTERPOLATE
Syntax: $!LINEARINTERPOLATE
DESTINATIONZONE = <integer>
[optional parameters]
Description: Interpolate selected variables from a set of source zones to a destination zone using linear
interpolation. The source zones cannot be I-ordered. Values assigned to the destination
zone are equivalent to the results of using the probe tool in Tecplot.
Required Parameter:
161
Optional Parameters:
Parameter
Syntax Default Notes
s
SOURCEZONES = <set> All zones except
the destination
zone.
VARLIST = <set> All variables except Choose the variables to interpolate. The spatial
spatial variables. variables (X, Y and Z if 3-D) are not allowed.
Example: Do linear interpolation from zones 2, 3 and 4 onto zone 7. Interpolate only variables 3-7:
$!LINEARINTERPOLATE
SOURCEZONES = [2-4]
DESTINATIONZONE = 7
VARLIST = [3-7]
$!LINEMAP
Syntax: $!LINEMAP [<set>]
[optional parameters]
Description: A SetValue command that assigns attributes for individual Line-mappings. The <set>
parameter immediately following the $!LINEMAP command is optional. If <set> is
omitted then the assignment is applied to all Line-mappings, otherwise the assignment is
applied only to the Line-mappings specified in <set>.
Optional Parameters:
162
$!LINEMAP
163
Parameter Syntax Default Notes
LINETHICKNESS <op> <dexp>
}
NAME = <string>
SYMBOLS
{
SHOW = <boolean>
COLOR = <color>
FILLMODE = <fillmode>
FILLCOLOR = <color>
SIZE <op> <dexp>
LINETHICKNESS <op> <dexp>
SKIPPING <op> <dexp> Skip can be by index or distance
depending on SKIPMODE.
SKIPMODE = <skipmode>
SYMBOLSHAPE <<symbolshape>>
}
Examples:
Example 1: Assign variable 1 to be on the X-axis and variable 4 to be on the Y-axis for Line-mapping
number 7:
$!LINEMAP [7]
ASSIGN
{
XAXISVAR = 1
YAXISVAR = 4
}
164
$!LINEPLOTLAYERS
SHOW = YES
}
$!LINEPLOTLAYERS
Syntax: $!LINEPLOTLAYERS
[optional parameters]
Description: A SetValue command that turns on or off Line-plot layers.
Optional Parameters:
$!LINKCOLORMAPS
Syntax: $!LINKCOLORMAPS = <boolean>
Description: Set to true to tie all colormaps together.
$!LINKING
Syntax: $!LINKING
[optional parameters]
Description: Link attributes in two or more frames so that changes to attributes of one frame effect all
linked frames.
Optional Parameters:
165
Parameter Syntax Notes
LINKXAXISRANGE = <boolean>
LINKYAXISRANGE = <boolean>
LINKPOLARVIEW = <boolean>
LINK3DVIEW = <boolean>
LINKGROUP = <integer>
LINKAXISPOSITION = <boolean>
LINKVALUEBLANKING = <boolean>
LINKSLICEPOSITIONS = <boolean>
LINKISOSURFACEVALUES = <boolean>
}
WITHINFRAME
{
LINKAXISSTYLE = <boolean>
LINKGRIDLINESTYLE = <boolean>
LINKLAYERLINECOLOR = <boolean>
LINKLAYERLINEPATTERN = <boolean>
}
Example: The following example will set the link attribute for
all frames in the layout to LINK3DVIEW.
$!LOOP |NUMFRAMES|
$!LINKING BETWEENFRAME LINK3DVIEW = YES
$!FRAMECONTROL PUSHTOP
$!ENDLOOP
$!LOADADDON
Syntax: $!LOADADDON <string>
INITFUNCTION = <string>
ADDONSTYLE = <addonstyle>
Description: Load an add-on into Tecplot. The <string> is the name of the add-on to load. See the
Tecplot User’s Manual for instructions on how to specify the add-on.
Optional Parameters:
Example: Load the Circle Stream add-on. It is a V7STANDARD add-on stored in a library named
cstream.
$!LOADADDON "cstream"
166
$!LOADCOLORMAP
$!LOADCOLORMAP
Syntax: $!LOADCOLORMAP <string>
[no parameters]
Description: Load a color map file. The <string> is the name of the file to load.
Example: $!LOADCOLORMAP "mycolors.map"
$!LOOP...$!ENDLOOP
Syntax: $!LOOP <integer>
$!ENDLOOP
Description: Process macro commands in a loop. Within the loop you may access the current loop
counter using the internal macro variable |Loop|. Loops may be nested up to 10 levels
deep.
Example: Process macro commands 3 times over:
$!LOOP 3
.
.
.
$!ENDLOOP
$!MACROFUNCTION...$!ENDMACROFUNCTION
Syntax: $!MACROFUNCTION
NAME = <string>
[optional parameters]
.
.
.
$!ENDMACROFUNCTION
Description: Define a macro function. All commands between a $!MACROFUNCTION and the
$!ENDMACROFUNCTION are associated with the macro function NAME. These
commands are not executed when they are defined but are executed when a
$!RUNMACROFUNCTION command is processed. Parameters can be passed to a macro
function. Use |n| to reference the nth parameter. (See $!RUNMACROFUNCTION). To
use the KEYSTROKE option, <Crtl>+M must be pressed initially.
Required Parameter:
167
Optional Parameter:
$!NEWLAYOUT
Syntax: $!NEWLAYOUT
[no parameters]
Description: Clear the current layout and start again. A blank default frame will be created for you.
Example: $!NEWLAYOUT
$!OPENLAYOUT
Syntax: $!OPENLAYOUT <string>
[optional parameters]
Description: Open and read in a new layout file. The <string> is the name of the file to open.
168
$!PAPER
Optional Parameters:
Example 2: Open a new layout file called multiframe.lay and replace the first data set with
t.plt and the second data set with the two files, a.plt and b.plt:
$!OPENLAYOUT "multiframe.lay"
ALTDATALOADINSTRUCTIONS = '"t.plt" "a.plt"+"b.plt"'
$!PAPER
Syntax: $!PAPER
[optional parameters]
Description: A SetValue command that sets the paper characteristics.
Optional Parameters:
169
Parameter Syntax Notes
PAPERSIZEINFO
{
LETTER <<papersize>>
DOUBLE <<papersize>>
A3 <<papersize>>
A4 <<papersize>>
CUSTOM1 <<papersize>>
CUSTOM2 <<papersize>>
}
REGIONINWORKAREA <<rect>> Specify rectangle that must fit within the workarea. Units are
in inches (that is, in the paper coordinate system).
RULERSPACING = <paperrulerspacing>
SHOWGRID = <boolean>
SHOWPAPER = <boolean>
SHOWRULER = <boolean>
Example: This example does the following:
• Turns off the paper grid.
• Makes the paper size CUSTOM1.
• Makes the dimensions for CUSTOM1 to be 4 by 5 inches.
$!PAPER
SHOWGRID = NO
PAPERSIZE = CUSTOM1
PAPERSIZEINFO
{
CUSTOM1
{
WIDTH = 4
HEIGHT = 5
}
}
$!PAUSE
Syntax: $!PAUSE <string>
[no parameters]
Description: Stop execution of a macro and optionally display a dialog with a message. If <string> is
set to "" then no dialog is displayed and the user must click in the work area to continue.
Example: Pause and display the message This is the first example plot:
$!PAUSE "This is the first example plot."
170
$!PICK [Required-Control Option]
$!PICK ADD
Syntax: $!PICK ADD
X = <dexp>
Y = <dexp>
[optional parameters]
Description: Attempt to pick an object at a specific location on the paper.
Required Parameters:
171
Parameters Syntax Default Notes
DIGGINGFOROBJECTS = <boolean> FALSE If TRUE, attempt to pick objects below any currently
picked objects at this location.
IGNOREZONEOBJECTS = <boolean> FALSE If TRUE, pick operations will ignore zones and pick
objects such as slices, iso-surfaces and streamtraces.
Example: Attempt to add to the list of picked objects by picking at paper location (1.0, 7.0). Do not
clear the list of picked objects before picking:
$!PICK ADD
X = 1.0
Y = 7.0
COLLECTINGOBJECTS = TRUE
$!PICK ADDALL
Syntax: $!PICK ADDALL
[optional parameters]
Description: Add all objects of a certain type to the list of picked objects.
Optional Parameters
$!PICK ADDALLINRECT
Syntax: $!PICK ADDALLINRECT
X1 = <dexp>
Y1 = <dexp>
X2 = <dexp>
Y2 = <dexp>
[optional parameters]
172
$!PICK ADDALLINRECT
Description: Add objects defined within a specified region to the list of picked objects. The region is
defined in terms of the paper coordinate system. Optional filters can be used to restrict the
objects selected. The region is defined by the two corner points (X1, Y1) and (X2, Y2).
Required Parameters:
a. There is no default for this parameter. If this parameter is omitted then the corresponding filter is not
used.
Example: Pick all circles using a dashed line pattern within the rectangle bounded by the points (0,
0) and (3, 5):
$!PICK ADDALLINRECT
SELECTGEOMS = TRUE
LINEPATTERNFILTER= DASHED
GEOMFILTER = CIRCLE
X1 = 0
Y1 = 0
X2 = 3
Y2 = 5
173
$!PICK CLEAR
Syntax: $!PICK CLEAR
[no parameters]
Description: Delete all objects that are currently picked. (These objects cannot be retrieved.)
Example: $!PICK CLEAR
$!PICK COPY
Syntax: $!PICK COPY
[no parameters]
Description: Copy all objects that are currently picked to the paste buffer.
Example: $!PICK COPY
$!PICK CUT
Syntax: $!PICK CUT
[no parameters]
Description: Copy all objects that are currently picked to the paste buffer and then delete them.
Example: $!PICK CUT
$!PICK EDIT
Syntax: $!PICK EDIT
[parameters]
Description: Perform a global edit operation on the currently picked objects. Only one edit operation is
allowed per $!PICK EDIT command. Objects are edited only if the supplied parameter
is relevant. Actions taken using the Quick Edit dialog in Tecplot generate these
commands.
Parameters: Must select one from this table.
174
$!PICK EDIT
175
Parameters Syntax Notes
SHADE Only operates on 2- or 3-D zone objects.
{
SHOW = <boolean>
SHADETYPE = <shadetype>
}
SHOWBORDER = <boolean> Only operates on frame objects.
SIZE = <dexp> Value is in Y-frame units. This applies to things like
symbols.
SYMBOLS Only operates on line mapping objects.
{
SHOW = <boolean>
ISFILLED = <boolean>
}
TEXTCOLOR = <color>
TEXTHEIGHTBYPERCENT = <dexp> Value is in Y-frame units (0-100).
TEXTHEIGHTBYPOINTS = <dexp> Value is in points.
VECTOR Only operates on 2- or 3-D zone objects.
{
SHOW = <boolean>
VECTORTYPE = <vectortype>
}
Examples:
Example 1: Set all picked objects to use the color yellow:
$!PICK EDIT
COLOR = YELLOW
Example 2: Set all picked objects to use the dashed line pattern:
$!PICK EDIT
LINEPATTERN = DASHED
Example 3: Set all picked objects (which are zones) to use the contour plot type of flooding:
$!PICK EDIT
CONTOUR {CONTOURTYPE = FLOOD}
$!PICK MAGNIFY
Syntax: $!PICK MAGNIFY
MAG = <dexp>
Description: Magnify all picked objects. The objects will also be translated proportional to the
distance between their anchor position and the anchor position of the first object picked.
176
$!PICK PASTE
$!PICK PASTE
Syntax: $!PICK PASTE
[no parameters]
Description: Paste the currently picked objects from the paste buffer to the work area.
Example: $!PICK PASTE
$!PICK POP
Syntax: $!PICK POP
[no parameters]
Description: Change the order in which objects are drawn by popping the currently picked objects to
the front. Only frames, text, geometries, and the grid area for 2-D plots are allowed.
Example: $!PICK POP
$!PICK PUSH
Syntax: $!PICK PUSH
[no parameters]
Description: Change the order in which objects are drawn by pushing the currently picked objects
back. Only frames, text, geometries, and the grid area for 2-D plots are allowed.
Example: $!PICK PUSH
$!PICK SETMOUSEMODE
Syntax: $!PICK SETMOUSEMODE
MOUSEMODE = <mousemode>
Description: Prepare to pick objects by setting the mouse mode to SELECT or
ADJUST. This command also clears the list of picked objects (that is, unpicks all picked
objects).
177
Required Parameter:
$!PICK SHIFT
Syntax: $!PICK SHIFT
X = <dexp>
Y = <dexp>
[optional parameters]
Description: Shift the currently picked objects. Objects are shifted relative to their starting position. X
and Y shift amounts are in paper units (inches). If snapping is in effect then it is applied
after shifting in X and Y. (See the SetValue commands $!GLOBALFRAME
SNAPTOGRID and $!GLOBALFRAME SNAPTOPAPER.)
Required Parameters:
$!PLOTTYPE
Syntax: $!PLOTTYPE = <plottype>
[no parameters]
Description: Changes plot types between valid Tecplot modes such as XYLine and Cartesian2D. Valid
178
$!POLARAXIS
$!POLARAXIS
Syntax: $!POLARAXIS
[optional parameters]
Description: A SetValue command that assigns attributes for axes in a polar frame.
Optional Parameters:
$!POLARTORECTANGULAR
Syntax: $!POLARTORECTANGULAR <set>
[no parameters]
Description: Treat the variables currently assigned to X and Y as referring to R and θ and convert
them to X and Y. In 3-D, X, Y and Z refer to R, θ, and ψ. Tecplot has addition
capabilities for transforming coordinates, please see
179
$!TRANSFORMCOORDINATES.
Example: Convert zones 1, 2 and 3 from polar to rectangular:
$!POLARTORECTANGULAR [1-3]
$!POLARVIEW
Syntax: $!POLARVIEW
[optional parameters]
Description: Sets the viewing style for polar plots in a layout.
Required Parameters:
$!PRINT
Syntax: $!PRINT
[no parameters]
Description: Print the current layout to a printer or send the print instructions to a file. Use the
$!PRINTSETUP SetValue command to configure printing.
Example: $!PRINT
180
$!PRINTSETUP
$!PRINTSETUP
Syntax: $!PRINTSETUP
[optional parameters]
Description: A SetValue command that sets the attributes for printing. Use $!PRINT to do the actual
printing. See $!EXPORTSETUP and $!EXPORT if you intend to create image files
destined for desktop publishing programs.
Optional Parameters:
181
Parameter Syntax Default Notes
SPOOLER These strings contain the system
{ command needed to send a file to the
print spooler on your computer. Use
PSMONOSPOOLCMD = <string> the @ symbol as a place holder for
PSCOLORSPOOLCMD = <string> where you normally insert the name
LGSPOOLCMD = <string> of the file to be printed.
} For security reasons these commands
can only be used in the Tecplot
configuration file.
USEISOLATIN1FONTS-INPS = <boolean> Use extended ISO-Latin1 fonts when
generating PostScript output using
Tecplot’s internal PostScript driver.
Example: This example does the following:
• Instruct Tecplot to send print output to the print spooler.
• Sets the spooler command for monochrome PostScript to be lpr @.
• Sets the print driver to be monochrome PostScript.
$!PRINTSETUP
SENDPRINTTOFILE = FALSE
DRIVER = PS
PALETTE = MONOCHROME
SPOOLER
{
PSMONOSPOOLCMD = "lpr @"
}
$!PROMPTFORFILENAME
Syntax: $!PROMPTFORFILENAME <macrovar>
DIALOGTITLE = <string>
DEFAULTFNAME = <string>
FILEFILTER = <string>
Description: Instruct Tecplot to launch a file selection dialog. The resulting file name will be placed in
<macrovar>. If the user cancels out of the dialog then <macrovar> will be empty (see
the example below).
Optional Parameter:
182
$!PROMPTFORTEXTSTRING
$!PROMPTFORTEXTSTRING
Syntax: $!PROMPTFORTEXTSTRING <macrovar>
INSTRUCTIONS = <string>
Description: Instruct Tecplot to launch a dialog containing a single line text field and optional
instructions. The user enters text into the text field and the resulting string is assigned to
<macrovar>.
Optional Parameter:
$!PROMPTFORYESNO
Syntax: $!PROMPTFORYESNO <macrovar>
183
INSTRUCTIONS = <string>
Description: Instruct Tecplot to launch a dialog containing two buttons, one labeled Yes and the other
No. The <macrovar> is assigned the string Yes or No depending on the selection.
Optional Parameter:
$!PROPAGATELINKING
Syntax: $!PROPAGATELINKING
[optional parameters]
Description: Link multiple frames, ether within frame or between frames.
Optional Parameter:
$!PUBLISH
Syntax: $!PUBLISH <string>
Description: Create an HTML file displaying one or more images. A linked layout with packaged data
may be included. You must provide the file name.
184
$!QUIT
Optional Parameter:
$!QUIT
Syntax: $!QUIT
Description: Terminate the execution of the Tecplot program.
Example: $!QUIT
$!RAWCOLORMAP
Syntax: $!RAWCOLORMAP
<colormaprawdata>
Description: Assign the RGB values that define the Raw user-defined color map. This does not set the
color map to use the Raw user-defined color map. Use $!COLORMAP to set the current
color map.
Required Parameter:
$!RAWCOLORMAP
RAWDATA
11
0 0 0
25 25 25
50 50 50
75 75 75
185
100100 100
125125 125
150150 150
175175 175
200200 200
225225 225
255255 255
$!READDATASET
Syntax: $!READDATASET <string>
[optional parameters]
Description: Read one or more data files into Tecplot to form a new data set.
Optional Parameters:
186
$!READDATASET
Example 2: Read in the datafile t1.plt. Only read in zones 1 and 4. Skip over every other I-index:
$!READDATASET "t1.plt"
ZONELIST = [1,4]
IJKSKIP
{
I = 2
}
187
Example 3: Read in the data files t1.plt, t2.plt, and t3.plt. Append the new data set to the
current one:
$!READDATASET "t1.plt t2.plt t3.plt"
READDATAOPTION = APPEND
Example 4: Read in the data files t1.plt and t2.plt from directory
/users/john/testrun7/runb:
$!VARSET |BASEDIR| = "/users/john/testrun7/runb"
$!READDATASET "|basedir|/t1.plt |basedir|/t2.plt"
$!READSTYLESHEET
Syntax: $!READSTYLESHEET <string>
[optional parameters]
Description: Read in a stylesheet file. The <string> is the name of the file to read.
Optional Parameters:
188
$!REDRAW
$!REDRAW
Syntax: $!REDRAW
[optional parameters]
Description: Redraw the current frame.
Optional Parameter:
$!REDRAWALL
Syntax: $!REDRAWALL
[optional parameters]
Description: Redraw all frames.
Optional Parameter:
$!REMOVEVAR
Syntax: $!REMOVEVAR <macrouserdefvar>
Description: Remove a user-defined macro variable. This frees up space so another user-defined
macro variable can be defined.
Example: Remove the macro variable |ABC|:
$!REMOVEVAR |ABC|
$!RENAMEDATASETVAR
Syntax: $!RENAMEDATASETVAR
VAR = <integer>
189
NAME = <string>
[no optional parameters]
Description: Rename a data set variable in Tecplot.
Required Parameters:
$!RENAMEDATASETZONE
Syntax: $!RENAMEDATASETZONE
ZONE = <integer>
NAME = <string>
[no optional parameters]
Description: Rename a data set zone in Tecplot.
Required Parameters:
$!RENAMEDATASETZONE
ZONE = 1
NAME = "Banana"
$!RESET3DAXES
Syntax: $!RESET3DAXES
[no parameters]
Description: Reset the ranges on the 3-D axes.
Example: $!RESET3DAXES
190
$!RESET3DORIGIN
$!RESET3DORIGIN
Syntax: $!RESET3DORIGIN
[optional parameters]
Description: Reposition the rotation origin in 3-D to be at the specified location.
Optional Parameter:
$!RESET3DSCALEFACTORS
Syntax: $!RESET3DSCALEFACTORS
[no parameters]
Description: Recalculate the scale factors for the 3-D axes. Aspect ratio limits are taken into account.
Example: $!RESET3DSCALEFACTORS
$!RESETVECTORLENGTH
Syntax: $!RESETVECTORLENGTH
[no parameters]
Description: Reset the length of the vectors. Tecplot will find the vector with the largest magnitude
and set the scaling factor so it will appear on the screen using the length specified by
$!FRAMESETUP VECTDEFLEN.
Example: $!RESETVECTORLENGTH
$!ROTATE2DDATA
Syntax: $!ROTATE2DDATA
ANGLE = <dexp>
[optional parameters]
Description: Rotate field data in 2-D about any point.
191
Required Parameter:
$!ROTATE3DVIEW
Syntax: $!ROTATE3DVIEW <rotateaxis>
ANGLE = <dexp>
[optional parameters]
Description: Do a 3-D rotation about a given axis. The <rotateaxis> must be supplied.
Required Parameter:
192
$!RUNMACROFUNCTION
$!RUNMACROFUNCTION
Syntax: $!RUNMACROFUNCTION <string> [<macroparameterlist>]
Description: Execute commands defined in a macro function. The <string> references the name of the
macro function to run. If the macro requires parameters, then include them (within
parentheses) after the macro name.
Example: Run macro function XYZ and pass the value 7 as the first parameter and the value 3.5 as
the second parameter:
$!RUNMACROFUNCTION "XYZ" (7,3.5)
$!SAVELAYOUT
Syntax: $!SAVELAYOUT <string>
[optional parameters]
Description: Save the current layout to a file. You must supply the file name.
Optional Parameter:
$!SET3DEYEDISTANCE
Syntax: $!SET3DEYEDISTANCE
EYEDISTANCE = <dexp>
Description: Sets the distance from the viewer to the plane of the current center of rotation.
Example: $!SET3DEYEDISTANCE
EYEDISTANCE = 13.5
193
$!SETAUXDATA
Syntax: $!SETAUXDATA
AUXDATALOCATION = [zone/var/dataset/frame/linemap]
NAME = <string>
VALUESTRING = <string>
[optional parameters]
Description: Add Auxiliary Data in the form of name/value pairs to zones, frames or datasets. The
name must begin with an underscore or letter, and may be followed by one or more
underscore, period, letter, or digit characters.
Required Parameters:
Optional Parameters:
$!SETDATASETTITLE
Syntax: $!SETDATASETTITLE <string>
[no optional parameters]
Description: Set the title for the current data set.
Example: $!SETDATASETTITLE "My data set"
194
$!SETFIELDVALUE
$!SETFIELDVALUE
Syntax: $!SETFIELDVALUE
ZONE = <integer>
VAR = <integer>
INDEX = <integer>
FIELDVALUE = <dexp>
AUTOBRANCH = <boolean>
[no optional parameters]
Description: Specify a field value (data set value) at a specified point index. If the zone referenced is
IJ- or IJK-ordered then the point index is calculated by treating the 2- or 3-D array as a 1-
D array.
Required Parameters:
$!SETFRAMEBACKGROUNDCOLOR
Description. Sets the frame background to the specified color and surveys all basic color assignments
195
in Tecplot, converting the all basic colors using the following rules to achieve the best
contrast:
1. For all line type basic colors that match the new basic frame color, set the
basic line color to the best show color of the basic frame color.
2. For all fill type basic colors that match the best show color of the new basic
frame color, set the fill color to the new frame color.
Exceptions: 3.
1. For geometries and text boxes if the line and fill colors are the same and filling
is active then both lines and fill follow the fill rules above.
2. For zone, slice, iso-surface, and streamtrace object types the basic color shad-
ing (i.e. fill) only follows the fill rules above if lighting effects are not being
used.
$!SETSTYLEBASE
Syntax: $!SETSTYLEBASE <stylebase>
[no parameters]
Description: Instruct Tecplot on how to initialize frame style values when a new frame is created.
During normal operation, Tecplot bases the style of a new frame on the factory defaults
plus any changes assigned in the Tecplot configuration file. Layout files and stylesheet
files, however, rely on Tecplot basing new frames only on the factory defaults. This
command is typically not used by the casual user.
Example: Set the style base for frames to use the factory defaults:
$!SETSTYLEBASE FACTORY
$!SHARECONNECTIVITY
Syntax: $!SHARECONNECTIVITY
SOURCEZONE = <integer>
DESTINATIONZONE = <integer>
[no optional parameters]
Description: Share the nodemap between the source and destination zones, presuming that the zones
are FE and have the same element type and number of nodes.
196
$!SHAREFIELDDATAVAR
Required Parameters:
Example: Shares the connectivity of the second zone with the sixth zone.:
$!SHARECONNECTIVITY
SOURCEZONE = 2
DESTINATIONZONE = 6
$!SHAREFIELDDATAVAR
Syntax: $!SHAREFIELDDATAVAR
SOURCEZONE = <integer>
VAR = <integer>
DESTINATIONZONE = <integer>
[no optional parameters]
Description: Allows sharing of the specified variable from the source zone to the destination zone.
Zone must be of the same type (ordered or FE) and dimensions. Cell centered variables in
FE must have the same number of cells. Sharing is not allowed if either zone has global
face neighbors.
Required Parameters:
Example: Shares the third variable from the second zone, with the fifth zone:
$!SHAREFIELDDATAVAR
SOURCEZONE = 2
VAR = 3
DESTINATIONZONE = 5
$!SHIFTLINEMAPSTOBOTTOM
Syntax: $!SHIFTLINEMAPSTOBOTTOM <set>
197
[no parameters]
Description: Shift a list of Line-mappings to the bottom of the Line-mapping list. This in effect causes
the selected Line-mappings to be drawn last.
Example: Shift Line-mappings 2 and 4 to the bottom:
$!SHIFTLINEMAPSTOBOTTOM [2,4]
$!SHIFTLINEMAPSTOTOP
Syntax: $!SHIFTLINEMAPSTOTOP <set>
[no parameters]
Description: Shift a list of Line-maps to the top of the Line-map list. This in effect causes the selected
Line-maps to be drawn first.
Example: Shift Line-maps 2 and 4 to the top:
$!SHIFTLINEMAPSTOTOP [2,4]
$!SHOWMOUSEPOINTER
Syntax: $!SHOWMOUSEPOINTER <boolean>
[optional parameters]
Description: The mouse icon may be deactivated within a macro to enhance the on-screen animation.
It must be reactivated before exiting the macro.
Example: $!SHOWMOUSEPOINTER NO
$!LOOP 36
$!ROTATE3DVIEW X
ANGLE = 5
$!REDRAW
$!ENDLOOP
$!SHOWMOUSEPOINTER YES
!SKETCHAXIS
Syntax: $!SKETCHAXIS
[optional parameters]
198
$!SLICEATTRIBUTES
Description: A SetValue command that assigns attributes for axes in a sketch mode frame. Axes are
rarely used in sketch frames.
Optional Parameters:
$!SLICEATTRIBUTES
Syntax: $!SLICEATTRIBUTES [<slicegroup>]
[optional parameters]
Description: A SetValue command that changes global attributes associated with slices.
Optional Parameters:
199
Parameter Syntax Default Notes
}
EDGELAYER
{
SHOW = <boolean>
COLOR = <color>
LINETHICKNESS = <op><double>
}
ENDPOSITION
{
X = <double>
Y = <double>
Z = <double>
I = <integer>
J = <integer>
K = <integer>
}
MESH
{
SHOW = <boolean>
COLOR = <color>
LINETHICKNESS = <double>
}
NUMINTERMEDIATESLICES = <integer>
OBEYSOURCEBLANKING = <boolean>
PRIMARYPOSITION
{
X = <double>
Y = <double>
Z = <double>
I = <integer>
J = <integer>
K = <integer>
}
SHADE
{
SHOW = <boolean>
COLOR = <color>
USELIGHTINGEFFECT = <boolean>
}
SHOWGROUP = <boolean>
SHOWINTERMEDIATESLICES = <boolean>
SHOWPRIMARYSLICE = <boolean>
SHOWSTARTENDSLICE = <boolean>
SLICESURFACE = <slicesurface>
STARTPOSITION
{
X = <double>
Y = <double>
200
$!SLICELAYERS
$!SLICELAYERS
Syntax: $!SLICELAYERS
Required Parameters:
$!SMOOTH
Syntax: $!SMOOTH
ZONE = <set>
VAR = <set>
201
[optional parameters]
Description: Smooth data (reduce the spikes) for selected variables in selected zones.
Required Parameters:
$!STREAMATTRIBUTES
Syntax: $!STREAMATTRIBUTES
[optional parameters]
Description: A SetValue command that changes global attributes associated with streamtraces.
Optional Parameters:
202
$!STREAMATTRIBUTES
203
Parameter Syntax Notes
SHOW = <boolean>
COLOR = <color>
LINEPATTERN = <linepattern>
PATTERNLENGTH <op> <dexp>
LINETHICKNESS <op> <dexp>
}
Description: The different commands in the STREAMTRACE compound function family are
described separately in the following sections.
The STREAMTRACE compound function family is:
$!STREAMTRACE ADD
$!STREAMTRACE DELETALL
$!STREAMTRACE DELETERANGE
$!STREAMTRACE RESETDELTATIME
$!STREAMTRACE SETTERMINATIONLINE
$!STREAMTRACE ADD
Syntax: $!STREAMTRACE ADD
[optional parameters]
Description: Add a single streamtrace or a rake of streamtraces to the current frame. The frame must
be a 2-D or 3-D field plot.
Optional Parameters:
204
$!STREAMTRACE ADD
a. Tecplot determines the default streamtype based on a number of factors. It is best to always supply this
parameter.
Example 2: Add a single volume ribbon. Start the ribbon oriented parallel to the Z-axis:
$!STREAMTRACE ADD
STREAMTYPE = VOLUMERIBBON
STARTPOS
{
X = 3.0
Y = 4.0
Z = 1.0
}
ALTSTARTPOS
{
X = 3.0
Y = 4.0
Z = 8.0
}
205
$!STREAMTRACE DELETEALL
Syntax: $!STREAMTRACE DELETEALL
[no parameters]
Description: Deletes all streamtraces in the current frame. If the frame mode is 2-D, all 2-D
streamtraces are deleted. If the frame mode is 3-D, all 3-D streamtraces are deleted.
Example: $!STREAMTRACE DELETEALL
$!STREAMTRACE DELETERANGE
Syntax: $!STREAMTRACE DELETERANGE
[optional parameters]
Description: Delete a range of streamtraces. Streamtraces are numbered sequentially in the order they
were created.
Optional Parameters:
$!STREAMTRACE RESETDELTATIME
Syntax: $!STREAMTRACE RESETDELTATIME
[no parameters]
Description: Reset the time delta for dashed streamtraces. The delta time is reset such that a stream
dash in the vicinity of the maximum vector magnitude will have a length approximately
equal to 10 percent of the frame width.
Example: $!STREAMTRACE RESETDELTATIME
$!STREAMTRACE SETTERMINATIONLINE
Syntax: $!STREAMTRACE SETTERMINATIONLINE
206
$!STREAMTRACELAYERS
<xyrawdata>
Description: Set the position of the termination line for streamtraces.
Required Parameter:
Parameters Notes
<xyrawdata> In 3-D, the termination line is defined in the eye coordinate
system.
Example: Set the termination line using 3 points:
$!STREAMTRACE SETTERMINATIONLINE
RAWDATA
3
4.07.0
5.09.0
5.03.0
$!STREAMTRACELAYERS
Syntax: $!STREAMTRACELAYERS
Required Parameters:
$!SYSTEM
Syntax: $!SYSTEM <string>
[optional parameters]
Description: Instruct Tecplot to submit a command to the operating system. For security reasons,
execution of the $!SYSTEM command can be disabled to prevent unauthorized
execution of system commands via macros. Use the
OKTOEXECUTESYSTEMCOMMAND option to the $!INTERFACE macro
command.
Example: Submit the system command to copy the file t7.plt to xxx.plt (UNIX):
$!SYSTEM "cp t7.plt xxx.plt"
207
Optional Parameters:
$!THREEDAXIS
Syntax: $!THREEDAXIS
[optional parameters]
Description: A SetValue command that assigns attributes for axes in a 3-D frame.
Optional Parameters:
208
$!THREEDVIEW
$!THREEDVIEW
Syntax: $!THREEDVIEW
[optional parameters]
Description: A SetValue command that changes global attributes associated with the 3-D view.
Optional Parameters:
209
$!TRANSFORMCOORDINATES
Syntax: $!TRANSFORMCOORDINATES
TRANSFORMATION = <transformation>
[optional parameters]
Description: Transforms all points in one or more zones from one coordinate system to another.
Required Parameter
210
$!TRIANGULATE
CREATENEWVARIABLES = YES
XVAR = 2
YVAR = 3
$!TRIANGULATE
Syntax: $!TRIANGULATE
[optional parameters]
Description: Create a new zone by forming triangles from data points in existing zones.
Optional Parameters:
$!TWODAXIS
Syntax: $!TWODAXIS
[optional parameters]
Description: A SetValue command that assigns attributes for axes in a 2-D frame.
Optional Parameters:
211
Parameter Syntax Default Notes
PRESERVEAXISSCALEWHENRANGEISCHANGED = <boolean>
VIEWPORTNICEFITBUFFER = <double>
VIEWPORTPOSTITION <<rect>>
VIEWPORTTOPSNAPTARGET = <integer> 100
VIEWPORTTOPSNAPTOLERANCE = <integer> 10
XDETAIL <<axisdetail>>
YDETAIL <<axisdetail>>
Example: Set the X-axis to use variable 3 for a 2-D plot:
$!TWODAXIS
XDETAIL {VARNUM = 3}
$!VARSET
Syntax: $!VARSET <macrovar> < op> <dexp>
[no parameters]
or
$!VARSET <macrovar> = <string>
[no parameters]
Description: Assign a value to a macro variable. If the macro variable did not exist prior to this
command, then it is defined here. A macro variable can be assigned a value or a string.
Examples:
Example 1: Set the macro variable |myvar| to 3:
$!VARSET |myvar| = 3
Example 4: Set the macro variable |F1| to equal |V2| + |V3|, where |V2| and |V3| are
predefined variables:
$!VARSET|V2| = 4
$!VARSET|V3| = 5
$!VARSET|F1| = (|V2| + |V3|)
212
$!VIEW [Required-Control Option]
$!VIEW AXISFIT
Syntax: $!VIEW AXISFIT
[optional parameters]
Description: Reset the range on a specific axis so that it equals the minimum and maximum of the data
being plotted. If the axis dependency is not independent then this action may also affect
the range on another axis.
Optional Parameters:
213
$!VIEW AXISMAKECURRENTAXISVALUESNICE
Syntax: $!VIEW AXISMAKECURRENTAXISVALUESNICE
[optional parameters]
Description: Reset the axis-line label values such that all currently displayed values are set to have the
smallest number of significant digits possible.
Optional Parameters:
$!VIEW AXISNICEFIT
Syntax: $!VIEW AXISNICEFIT
[optional parameters]
Description: Reset the range on a specific axis so that it equals the minimum and maximum of the data
being plotted, but makes the axis values “nice” by setting labels to have the smallest
number of significant digits possible. If the axis dependency is not independent then this
action may also affect the range on another axis.
Optional Parameters:
$!VIEW CENTER
Syntax: $!VIEW CENTER
214
$!VIEW COPY
[no parameters]
Description: Center the data within the axis grid area.
Example: $!VIEW CENTER
$!VIEW COPY
Syntax: $!VIEW COPY
[no parameters]
Description: Copy the current view to the view paste buffer. See also $!VIEW PASTE.
Example: $!VIEW COPY
$!VIEW DATAFIT
Syntax: $!VIEW DATAFIT
[no parameters]
Description: Fit the current set of data zones or line mappings being plotted within the grid area. This
does not take into consideration text or geometries.
Example: $!VIEW DATAFIT
$!VIEW FIT
Syntax: $!VIEW FIT
[no parameters]
Description: Fit the entire plot to the grid area. This also takes into consideration text and geometries
that are plotted using the grid coordinate system. In 3-D, this also includes the axes.
Example: $!VIEW FIT
$!VIEW LAST
Syntax: $!VIEW LAST
[no parameters]
Description: Retrieve the previous view from the view stack. Each frame mode within each frame
maintains its own view stack. $!VIEW LAST will not reverse alterations to data.
215
Example: $!VIEW LAST
$!VIEW MAKECURRENTVIEWNICE
Syntax: $!VIEW MAKECURRENTVIEWNICE
[no parameters]
Description: Shifts axis to make axis-line values nice without changing the extents of the window.
Only works in Sketch/XY/2D.
Example: $!VIEW MAKECURRENTVIEWNICE
$!VIEW NICEFIT
Syntax: $!VIEW NICEFIT
[no parameters]
Description: Change view to make the extents of the frame neatly hold the plot with integer values for
axis labels. Only works in Sketch/XY/2D.
Example: $!VIEW NICEFIT
$!VIEW PASTE
Syntax: $!VIEW PASTE
[no parameters]
Description: Retrieve the view from the view paste buffer and assign it to the current frame.
Example: $!VIEW PASTE
$!VIEW PUSH
Syntax: $!VIEW PUSH
[no parameters]
Description: Instruct Tecplot to push the current view onto the view stack. A view will not be pushed
if the current view is the same as the top view on the stack. Note that commands VIEW
AXISFIT, VIEW CENTER, VIEW DATAFIT, VIEW FIT, and VIEW ZOOM
automatically push a view onto the stack. Tecplot automatically pushes the current view
onto the stack when a $!REDRAW command is issued and the current view is different
from the top view on the view stack.
216
$!VIEW RESETTOENTIRECIRCLE
$!VIEW RESETTOENTIRECIRCLE
Syntax: $!VIEW RESETTOENTIRECIRCLE
[no parameters]
Description: Reset the Theta-R Axis to initial settings. For Polar plots only.
Example: $!VIEW RESETTOENTIRECIRCLE
$!VIEW SETMAGNIFICATION
Syntax: $!VIEW SETMAGNIFICATION
MAG = <dexp>
Description: Set the magnification for the data being plotted. A magnification of 1 will size the plot so
it can fit within the grid area.
Required Parameter:
$!VIEW TRANSLATE
Syntax: $!VIEW TRANSLATE
X = <dexp>
Y = <dexp>
[no optional parameters]
Description: Shift the data being plotted in the X- and/or Y-direction. The amount translated is in
frame units.
Required Parameters
217
Example: Translate the view 10 percent of the frame width to the right:
$!VIEW TRANSLATE
X = 10
$!VIEW ZOOM
Syntax: $!VIEW ZOOM
X1 = <dexp>
Y1 = <dexp>
X2 = <dexp>
Y2 = <dexp>
[no optional parameters]
Description: Change the view by “zooming” into the data. In Sketch, XY, and 2D frame mode plots,
Tecplot will adjust the ranges on the axis to view the region defined by the rectangle with
corners at (X1, Y1) and (X2, Y2). For 3-D orthographic plots, the view is translated and
scaled to fit the region. For 3-D perspective plots, the view is rotated about the viewer
and scaled to fit the region. X1 and so forth are measured in grid coordinates.
Required Parameters:
$!WHILE...$!ENDWHILE
Syntax: $!WHILE <conditionalexp>
.
.
.
$!ENDWHILE
Description: Continue to execute a set of commands until a conditional expression is false.
218
$!WORKSPACEVIEW [Required-Control Option]
Example: Execute a set of commands until the macro variable |myvar| is greater than 1.0:
$!VARSET |myvar| = 0.0
$!WHILE |myvar| < 1.0
.
.
.
$!VARSET |myvar| + = 0.01
$!ENDWHILE
$!WORKSPACEVIEW FITALLFRAMES
Syntax: $!WORKSPACEVIEW FITALLFRAMES
[no parameters]
Description: Change the view in the workspace so all frames are fit just inside the edges of the
workspace.
Example: $!WORKSPACEVIEW FITALLFRAMES
$!WORKSPACEVIEW FITPAPER
Syntax: $!WORKSPACEVIEW FITPAPER
[no parameters]
Description: Change the view in the workspace so the entire paper is fit just inside the edges of the
workspace.
Example: $!WORKSPACEVIEW FITPAPER
219
$!WORKSPACEVIEW FITSELECTEDFRAMES
Syntax: $!WORKSPACEVIEW FITSELECTEDFRAMES
[no parameters]
Description: Change the view in the workspace so the currently selected frames (that is, the frames
with pick handles) are fit just inside the edges of the workspace.
Example: $!WORKSPACEVIEW FITSELECTEDFRAMES
$!WORKSPACEVIEW LASTVIEW
Syntax: $!WORKSPACEVIEW LASTVIEW
[no parameters]
Description: Return to the previous workspace view.
Example: $!WORKSPACEVIEW LASTVIEW
$!WORKSPACEVIEW MAXIMIZE
Syntax: $!WORKSPACEVIEW MAXIMIZE
[no parameters]
Description: Temporarily expand the work area as large as possible. The maximized work area
occupies the entire Tecplot process window.
Example: $!WORKSPACEVIEW MAXIMIZE
$!WORKSPACEVIEW TRANSLATE
Syntax: $!WORKSPACEVIEW TRANSLATE
X = <dexp>
Y = <dexp>
[no optional parameters]
Description: Shift the view of the workspace. This has no effect on the local view within any frame in
your layout.
Required Parameters:
220
$!WORKSPACEVIEW UNMAXIMIZE
Example: Shift the workspace view to the left by 2 inches (as measured by the workspace ruler):
$!WORKSPACEVIEW TRANSLATE
X = -2
Y = 0
$!WORKSPACEVIEW UNMAXIMIZE
Syntax: $!WORKSPACEVIEW UNMAXIMIZE
[no parameters]
Description: Returns the workspace to its normal size after it has been expanded after $!WORKSPACE
MAXIMIZE has been used.
Example: $!WORKSPACEVIEW UNMAXIMIZE
$!WORKSPACEVIEW ZOOM
Syntax: $!WORKSPACEVIEW ZOOM
X1 = <dexp>
Y1 = <dexp>
X2 = <dexp>
Y2 = <dexp>
[no optional parameters]
Description: Change the view into the work area. This has no effect on the local view within any frame
in your layout.
Required Parameters:
221
$!WRITECOLORMAP
Syntax: $!WRITECOLORMAP <string>
[no parameters]
Description: Write the current color map to a file. The <string> is the name of the file to write to.
Example: $!WRITECOLORMAP "mycolors.map"
$!WRITECURVEINFO
Syntax: $!WRITECURVEINFO <string>
SOURCEMAP = <integer>
[optional parameters]
Description: Write out the curve details or the calculated data points for the equation(s) used to draw
the curve for a selected line mapping. The <string> is the name of the file to write to.
Required Parameter:
$!WRITEDATASET
Syntax: $!WRITEDATASET <string>
[optional parameters]
Description: Write the data set attached to the current frame to a file. The <string> is the name of the
file to write to.
222
$!WRITESTYLESHEET
Optional Parameters:
$!WRITESTYLESHEET
Syntax: $!WRITESTYLESHEET <string>
[optional parameters]
Description: Write the style for the current frame to a file. The <string> is the name of the file to write
to.
Optional Parameters:
223
Example: Write out a stylesheet for the current frame to f1.sty:
$!WRITESTYLESHEET "f1.sty"
INCLUDEFACTORYDEFAULTS = TRUE
$!XYLINEAXIS
Syntax: $!XYLINEAXIS
[optional parameters]
Description: A SetValue command that assigns attributes for axes in an XY Line plot.
Optional Parameters:
224
Chapter 9 Macro Commands for the
Analyze Menu
All of macro commands associated with the Analyze menu are embedded within Tecplot’s
ADDONCOMMAND macro. The syntax of this macro is shown below:
$!ADDONCOMMAND
ADDONID = <string>
COMMAND = <string>
The first <string> is a text string should be set to CFDAnalyzer3. The second string is sent to one
of the add-ons listed below.
Note: It is not necessary to direct the macro to display the Integration Results dialog in order to
attach or save the results.
CALCPARTICLEPATH calculates particle paths or streaklines for steady or unsteady flow solu-
tions, using the location of any existing streamtraces as starting locations for the particles. Particles
may have mass or be massless.
CALCULATE calculates a PLOT3D function. The name of this function must be specified in the
shortened form listed in Section 12.5, “Parameter Assignment Values.”
CALCULATEACCURACY uses Richardson extrapolation to estimate the order accuracy of the solu-
tion, given the solution on three grids of successively finer resolution. If either of the plotting
options are set to TRUE, the resulting Tecplot frames will be in front after executing this command.
225
DISPLAYBOUNDARIES displays zone boundaries in a new frame according to settings made by
the SETGEOMETRYANDBOUNDARIES macro. Each boundary of each 3-D zone (in 3D Cartesian
plots) or 2-D zone (in 2D Cartesian plots) is displayed and named according to the boundary condi-
tion applied to it. Boundaries that are connected to the boundaries of adjacent zones are named as
such.
INTEGRATE performs an integration. All Integrate dialog options are available to this macro,
including the display options. If the PLOTRESULTS parameter is set to TRUE, then the Tecplot
frame showing the integration results is the current frame following this command.
SAVEINTEGRATIONRESULTS has the same effect as clicking Save on the Integration Results
dialog and selecting a file. The results are saved to the file named by the FILE parameter.
SETFIELDVARIABLES identifies variables in your data, such as velocity, pressure and tempera-
ture, for use in analysis.
SETFLUIDPROPERTIES sets the properties of the fluid, such as viscosity. These are used by
some actions of the CALCULATE and INTEGRATE commands.
SETREFERENCEVALUES sets the reference (free-stream) properties of the solution. This informa-
tion is used by other calculations.
SETUNSTEADYFLOWOPTIONS identifies solution time levels for unsteady flow solutions. This
information is used for particle path and streakline calculations.
226
ANIMATESTREAKLINES
ANIMATESTREAKLINES
Syntax: $!ADDONCOMMAND
ADDONID = ‘CFDANALYZER3’
COMMAND = ‘ANIMATESTREAKLINES
[optional parameters]’
Description: Animates previously calculated streaklines to the screen or to a file.
Optional Parameters:
ATTACHINTEGRATIONRESULTS
Syntax: $!ADDONCOMMAND
ADDONID = ‘CFDAnalyzer3’
COMMAND = ‘ATTACHINTEGRATIONRESULTS’
Description: Attach the text results of the previous integration as a text field in the current frame.
227
CALCPARTICLEPATH
Syntax: $!ADDONCOMMAND
ADDONID = ‘CFDAnalyzer3’
COMMAND = ‘CALCPARTICLEPATH
[optional parameters]’
Description: Calculate particle paths or streaklines, starting from existing Tecplot streamtraces.
Optional Parameters:
228
CALCPARTICLEPATH
229
Parameter Syntax Default Notes
DRAGCOEFF = <double> 1.0 For DETAILED coefficients
only, with
DRAGCOEFFOPTION =
SPECIFY, the particle drag
coefficient. Only applies if
HAVEMASS = TRUE.
SPECIFICHEAT = <double> 1.0 For DETAILED coefficients
with
CALCTEMPERATURE =
TRUE only, the particle
specific heat. Only applies if
HAVEMASS = TRUE.
NUSSELTOPTION = <specifyoption> SPECIFY For DETAILED coefficients
with
CALCTEMPERATURE =
TRUE only. If
SPECIFY, specify NUSSELT.
If CALCULATE, Tecplot will
calculate the Nusselt number.
Only applies if HAVEMASS =
TRUE.
NUSSELT = <double> 1.0 For DETAILED coefficients
with
CALCTEMPERATURE =
TRUE and
NUSSELTOPTION =
SPECIFY only, the particle
Nusselt number. Only applies
if HAVEMASS = TRUE.
TERMOPTION = <terminationoption> TEMPERATURE For DETAILED coefficients
with
CALCTEMPERATURE =
TRUE only (is always
TEMPERATURE for general
coefficients), the particle
termination option. May be
TEMPERATURE or ABLATE.
Only applies if HAVEMASS =
TRUE.
TEMPERATURE = <double> 1.0 If TERMOPTION =
TEMPERATURE, the particle
termination temperature. If
TERMOPTION = ABLATE,
the ablation temperature.
Only applies if HAVEMASS =
TRUE.
LATENTHEAT = <double> 1.0 For TERMOPTION =
ABLATE only, the latent heat
of the ablative process. Only
applies if HAVEMASS =
TRUE.
Example 1: Calculate streaklines with an integration time step of 0.1, releasing eight particles per unit
solution time:
$!ADDONCOMMAND
ADDONID = CFDAnalyzer3
230
CALCTURBULENCEFUNCTION
COMMAND = ‘CALCPARTICLEPATH
FUNCTION=STREAKLINE
TIMESTEP=0.1 RELEASEFREQ=8
RELEASEOPTION=UNITTIME’
Example 2: Calculate particle paths, including temperature with ablation, in a steady-state flow for
particles with an initial mass of 3E-14, an initial radius of 1.5E-6 and a specific heat of
703. Use a time step of 1E-6. Have Tecplot calculate the drag coefficient and the Nusselt
number. Use an ablation temperature of 2,250 and a latent heat of 1.5E5:
$!ADDONCOMMAND
ADDONID = CFDAnalyzer3
COMMAND = ‘CALCPARTICLEPATH
TIMESTEP = 1.0e-6
HAVEMASS = TRUE
COEFFS = DETAILED
CALCTEMPERATURE = TRUE
MASS = 3e-14
RADIUS = 1.5e-6
DRAGCOEFFOPTION = CALCULATE
SPECIFICHEAT = 703
NUSSELTOPTION = CALCULATE
TERMOPTION = ABLATE
TEMPERATURE = 2250
LATENTHEAT = 1.5e5’
CALCTURBULENCEFUNCTION
Syntax: $!ADDONCOMMAND
ADDONID = ‘CFDAnalyzer3’
COMMAND = ‘CALCTURBULENCEFUNCTION
[optional parameters]
Description: Calculate a turbulence-related function from two variables in the current data set. Add the
result to the data set as a new variable using the function’s name, or overwrite the
variable if it already exists.
231
Optional Parameters:
CALCULATE
Syntax: $!ADDONCOMMAND
ADDONID = ‘CFDAnalyzer3’
COMMAND = ‘CALCULATE FUNCTION = <functionname>
[optional parameters]’
Description: Calculate a Tecplot variable using the specified function and add it to the current data set.
If the variable already exists in the current data set, it will be recalculated.
232
CALCULATEACCURACY
Required Parameter:
CALCULATEACCURACY
Syntax: $!ADDONCOMMAND
ADDONID = ‘CFDAnalyzer3’
COMMAND = ‘CALCULATEACCURACY ZONES = [<set>]
[optional parameters]’
Description: Calculate the order accuracy of the solution contained in the listed zones. Optionally, plot
the overall accuracy versus grid spacing and plot the accuracy at each grid node.
233
Required Parameter:
DISPLAYBOUNDARIES
Syntax $!ADDONCOMMAND
ADDONID = ‘CFDAnalyzer3’
COMMAND = ‘DISPLAYBOUNDARIES
[optional parameters]
[RAWDATA
<boundaryrawdata>]
Description: Displays boundaries corresponding to a geometry and boundaries specification without
actually setting the geometry and boundaries. This macro is generally not useful for those
writing macro files, but is recorded when the user clicks the Display Boundaries button in
the Geometry and Boundaries dialog in order to duplicate the actions of Tecplot that
happen in response to that action. See “SETGEOMETRYANDBOUNDARIES” on
page 241 for a description of the parameters for this macro.
234
EXTRACTFLOWFEATURE
EXTRACTFLOWFEATURE
Syntax: $!ADDONCOMMAND
ADDONID = CFDAnalyzer3
COMMAND = ‘EXTRACTFLOWFEATURE
[optional parameters]’
Description: Extract and display shock surfaces, vortex cores, or separation and attachment lines.
Shock surfaces are displayed as isosurfaces of a new variable, ShockSurface, while
vortex cores and separation and attachment lines are displayed as new zones.
Optional Parameters:
EXTRAPOLATESOLUTION
Syntax: $!ADDONCOMMAND
ADDONID = CFDAnalyzer3
COMMAND = ‘EXTRAPOLATESOLUTION ZONES = <set>
[MAXACCURACY = <double>]’
Description: Perform Richardson extrapolation to estimate the true solution from three input solutions
on grids of successively finer resolution. Two new zones are added to the current data set.
The first contains the extrapolated solution, while the second contains the estimated error.
235
Required Parameter:
INTEGRATE
Syntax: $!ADDONCOMMAND
ADDONID = CFDAnalyzer3
COMMAND = ‘INTEGRATE [<set>] [optional parameters]’
Description: Perform an integration over the specified zones. If <set> is not specified, the integration
will be performed over all zones. If PLOTAS is set to TRUE, the integration results will
be plotted in a new frame.
Optional Parameters:
236
INTEGRATE
• Zero can be used to represent the maximum index m; specifying zero tells the
command to go to the very last position of the range, that is, the maximum
index value m. If the maximum index m = 15, specifying zero sets the range
index to 15.
• Negative values represent the offset from the maximum index. If a value of -2
is specified, and the maximum index m is 14, the value used is 14–2, or 12.
237
Examples:
Example 1: The following command calculates the mass for all zones by integrating density (variable
4) over cell volumes:
$!ADDONCOMMAND
ADDONID = CFDAnalyzer3
COMMAND = ‘INTEGRATE SCALARVAR = 4’
Example 2: Calculate the mass flux across a series of I = constant planes for zones 1, 2, and 3 and
plots the results as “Mass Flux.” Since the COMMAND string is surrounded by single
quotation marks (‘), the quotes surrounding the PLOTAS parameter must be preceded
by a backslash to avoid a syntax error:
$!ADDONCOMMAND
ADDONID = CFDAnalyzer3
COMMAND = ‘INTEGRATE [1-3] VARIABLEOPTION =
MASSFLOWRATE INTEGRATEOVER = IPLANES PLOTRESULTS =
TRUE PLOTAS = \‘Mass Flux\’ ’
Example 3: Calculate the “mass-weighted average” (actually the mass flow-weighted average) of
total pressure, variable 7:
$!ADDONCOMMAND
ADDONID = CFDAnalyzer3
COMMAND = ‘INTEGRATE [1-3] VARIABLEOPTION =
MASSFLOWWEIGHTEDAVERAGE
SCALARVAR = 7 INTEGRATEOVER = IPLANES PLOTRESULTS =
TRUE PLOTAS = \‘Mass Weighted Avg Pt\’ ’
SAVEINTEGRATIONRESULTS
Syntax: $!ADDONCOMMAND
ADDONID = CFDAnalyzer3
COMMAND = ‘SAVEINTEGRATOINRESULTS
FILENAME = <string>’
Description: Saves the most recently calculated integration results to a text file.
Required parameter:
238
SETFIELDVARIABLES
characters (\) must be escaped with a second backslash character, and the file name is
surrounded by quotes (“):
$!ADDONCOMMAND
ADDONID = CFDAnalyzer3
COMMAND = ‘SAVEINTEGRATIONRESULTS
FILENAME = “E:\\users\\dave\\results.txt”’
SETFIELDVARIABLES
Syntax: $!ADDONCOMMAND
ADDONID = CFDAnalyzer3
COMMAND = ‘SETFIELDVARIABLES
[optional parameters]’
Description: Identifies variables in your data, such as velocity, pressure and temperature, for use in
analysis.
Optional Parameters:
239
SETFLUIDPROPERTIES
Syntax: $!ADDONCOMMAND
ADDONID = CFDAnalyzer3
COMMAND = ‘SETFLUIDPROPERTIES [optional parameters]’
Description: Set the fluid properties for use by other commands.
Optional Parameters:
240
SETGEOMETRYANDBOUNDARIES
SETGEOMETRYANDBOUNDARIES
Syntax $!ADDONCOMMAND
ADDONID = ‘CFDAnalyzer3’
COMMAND = ‘SETGEOMETRYANDBOUNDARIES
[optional parameters]’
[RAWDATA
<boundaryrawdata>]
Description Specify whether the data represent an axisymmetric flow solution (2D Cartesian plots
only), whether adjacent zones should be considered to be connected at coincident faces,
and specify zone boundaries and their corresponding boundary conditions.
Each line of the RAWDATA describes one boundary, and appears in the same format as
on the Geometry and Boundaries dialog. For all boundaries, list the boundary condition
and the set of zones, separated by a comma. The index range-type boundary follows this
241
with the boundary face, the first starting index, the first ending index, the second starting
index and the second ending index. All entries are separated by commas. The boundary
condition is one of INFLOW, OUTFLOW, WALL, SLIPWALL, SYMMETRY,
EXTRAPOLATED. The boundary face is one of I=1, I=IMAX, J=1, J=JMAX,
K=1, and K=KMAX. Refer to 19 - 4, “Setting Geometry and Boundary Options,” in the
Tecplot User’s Manual for more information on boundaries.
Optional Parameters:
Example Specify that the solution data represents an axisymmetric solution about X = 1. Do not
allow adjacent zones to be connected. Identify two zone-type boundaries and one zone,
face and index-range-type boundary:
$!ADDONCOMMAND
ADDONID = ‘CFDAnalyzer3’
COMMAND = ‘SETGEOMETRYANDBOUNDARIES
AXISYMMETRIC = TRUE
SYMMETRYVAR = X
SYMMETRYVALUE = 1
CONNECTZONES = FALSE’
RAWDATA
WALL,[2-3]
INFLOW,[4]
242
SETREFERENCEVALUES
OUTFLOW,[1],I=IMAX,1,10,1,20
SETREFERENCEVALUES
Syntax: $!ADDONCOMMAND
ADDONID = CFDAnalyzer3
COMMAND = ‘SETREFERENCEVALUES
[optional parameters]’
Description: Specify the reference (free-stream) properties of the solution, identify two variables in the
current data set for use with other commands.
Optional Parameters:
SETUNSTEADYFLOWOPTIONS
Syntax: $!ADDONCOMMAND
ADDONID = ‘CFDANALYZER3’
COMMAND = ‘SETUNSTEADYFLOWOPTIONS
[SteadyState=<boolean>]
243
[RAWDATA
<timelevelrawdata>]’
Description: Identifies time levels for unsteady flow, or specifies that the solution is steady-state. If
the flow is unsteady, the solution time levels are specified in the RAWDATA section. The
first line of the RAWDATA section must consist of a single integer indicating the number
of solution time levels. This must be followed by the time levels themselves. Each time
level must be on a separate line and must consist of a floating-point number (the solution
time), as well as one or more integers (the zone numbers for that solution time).
Optional Parameters:
244
SETUNSTEADYFLOWOPTIONS
245
246
<<anchorpos>>
This chapter details secondary or common macro parameter subcommands in Tecplot. These sub-
commands provide a means to access the lower level variables of commands defined in the previ-
ous chapter of this manual. Each subcommand can expand to contain one or more parameters or
subcommands. All parameters within a subcommand are optional.
Items within single angle brackets (< >) are defined in Chapter 11, “Parameter Assignment Values,
Expressions, and Arithmetic and Logical Operators.”
<<anchorpos>>
Description: Assign attributes for positioning of objects.
Expands to:
Syntax Notes
{
X = <double> Sets X-value (and THETA-value)
Y = <double> Sets Y-value (and R-value)
Z = <double> Sets Z-value
THETA = <double> Sets THETA-value (and X-value)
R = <double> Sets R-value (and Y-value)
}
Example: Make a square geometry and place it at a certain XY location:
$!ATTACHGEOM
GEOMTYPE = SQUARE
POSITIONCOORDSYS = FRAME
ANCHORPOS
{
X = 2.89124668435
Y = 88.7359084881
}
RAWDATA
5.23430593312
247
<<areastyle>>
Description: Change settings for the axis grid area.
Expands to:
Syntax Notes
{
DRAWGRIDLAST = <boolean> Not available in 3D frame mode.
DRAWBORDER = <boolean>
LINETHICKNESS <op> <dexp>
COLOR = <color>
ISFILLED = <boolean>
FILLCOLOR = <color>
USELIGHTSOURCETOFIL = <boolean> Only available for 3D frame mode.
}
Example: Turn on the grid area border for a 2-D plot and change the line thickness to be 2 percent:
$!TWODAXIS
AREASTYLE
{
DRAWBORDER = YES
LINETHICKNESS = 2
}
<<axisdetail>>
Description: Assign attributes for axes.
248
<<axisline>>
Expands to:
Syntax Notes
{
SHOWAXIS = <boolean>
AUTOGRID = <boolean>
ISREVERSED = <boolean>
GRANCHOR = <double>
GRSPACING = <double>
RANGEMIN = <double>
RANGEMAX = <double>
COORDSCALE = <coordscale>
CLIPDATA = <boolean>
VALUEATORIGIN = <double>
VARNUM = <integer>
TICKLABEL <<ticklabeldetail>>
GRIDLINES <<gridlinedetail>>
MINORGRIDLINES <<gridlinedetail>>
TICKS <<ticklabeldetail>>
TITLE <<axistitle>>
AXISLINE <<axisline>>
}
Example: Turn on the axis line, reverse the axis direction, and set the range to go from 0.5 to 1.5 for
the X-axis in a 2-D plot:
$!TWODAXIS
SHOWAXISLINE = TRUE
XDETAIL
{
ISREVERSED = TRUE
RANGEMIN = 0.5
RANGEMAX = 1.5
}
<<axisline>>
Description: Assign attributes for axis lines.
249
Expands to:
<<axistitle>>
Description: Assign attributes for titles.
250
<<basicsizelist>>
Expands to:
<<basicsizelist>>
Description: Assign basic sizes. The units for the values assigned here are dependent on the parent
command. Assignments here do not affect the plot. These assignments are used only to
configure drop-down menus in the interface so the user can make quick selections.
251
Expands to:
Syntax Notes
{
TINY <op> <dexp>
SMALL <op> <dexp>
MEDIUM <op> <dexp>
LARGE <op> <dexp>
HUGE <op> <dexp>
}
Example: Change the medium line pattern length for drop-down menus in the interface to be five
percent:
$!BASICSIZE
LINEPATLENGTHS
{
MEDIUM = 5
}
<<colormapcontrolpoints>>
Description: All contour color maps except the Raw user-defined color map make use of control points
to determine the color distribution. Each control point has a position and a left and right
color. The <<colormapcontrolpoints>> subcommand can contain more than one
CONTROLPOINT subcommand.
Expands to:
Syntax Notes
{
CONTROLPOINT <integer> Use <integer> to specify which control point to
modify.
{
<op> <dexp> Positions the control point; 0 sets the position to
COLORMAPFRACTION the lowest index and 1 to the highest index in the
color map.
LEADRGB <<rgb>>
TRAILRGB <<rgb>>
}
}
Example: Change the lead RGB values for control point 2 in the small rainbow color map to be
100, 0, 0:
$!COLORMAP
SMRAINBOW
{
252
<<colormapoverride>>
CONTROLPOINT 2
{
LEADRGB
{
R = 100
G = 0
B = 0
}
}
}
<<colormapoverride>>
Description: Change settings for a color map override. Color map overrides are used to replace a
specific band in a contour color map with one of the 16 basic colors.
Expands to:
Syntax Notes
{
INCLUDE = <boolean>
COLOR = <color>
STARTLEVEL <op> <integer>
ENDLEVEL <op> <integer>
}
Example: Set the color used between contour level number 1 to number 3 to be purple. Use color
map override number 3:
$!GLOBALCONTOUR
COLORMAPFILTER
{
COLORMAPOVERRIDEACTIVE = YES
COLORMAPOVERRIDE 3
{
INCLUDE = YES
COLOR = PURPLE
STARTLEVEL = 1
ENDLEVEL = 3
}
}
253
<<continuouscolor>>
Description: Change settings for continuous color.
Expands to:
Syntax Notes
CMIN = <double>
CMAX = <double>
Example: Set the continuous color.
$!GLOBALCONTOUR VAR = 4
$!FIELDLAYERS SHOWCONTOUR = YES
$!GLOBALCONTOUR COLORMAPFILTER
{COLORMAPDISTRIBUTION = CONTINUOUS}
$!GLOBALCONTOUR COLORMAPFILTER
{
CONTINUOUSCOLOR
{
CMIN = 0.5
CMAX = 2
}
}
}
<<dialogplacement>>
Description: Describes the placement for a dialog.
254
<<gridarea>>
Expands to:
Syntax Notes
{
ANCHORALIGNMENT = <anchoralignment>
ANCHORHORIZONTALINSIDE = <boolean> ANCHORHORIZONTALINSIDE and
ANCHORVERTICALINSIDE = <boolean> ANCHORVERTICALINSIDE control
how the dialog window is anchored in
both the horizontal and vertical
directions relative to the Tecplot main
window.
MINVISIBILITYPERCENTAGE = <integer> The MINVISIBILITYPERCENTAGE
specifies the minimum percentage of the
dialog, between 1 and 100, that must be
visible within the desktop. This prevents
a dialog from being placed outside of the
visible desktop. Note that not all window
managers allow dialogs to be placed so
that the portions of the dialog are not
visible and in effect enforce a value of
100.
XOFFSET = <integer> XOFFSET and YOFFSET are in pixels.
YOFFSET = <integer> They may be negative, but will be
truncated to the bounding rectangle of
the Tecplot main window.
POSITIONATANCHOR = <positionatanchor> POSITIONATANCHOR specifies when
to place it at the anchor, NEVER, ONCE
(initial launch), or ALWAYS.
}
Example: Set the position of the Colormap dialog to always launch 10 pixels from Tecplot’s
bottom-right corner:
$!INTERFACE
DIALOGPLACEMENT
{
COLORMAPDIALOG
{
ANCHORALIGNMENT = BOTTOMRIGHT
XOFFSET = 10
YOFFSET = 10
PLACEATANCHOR = ALWAYS
}
}
<<gridarea>>
Description: Change settings for the axis grid area.
255
Expands to:
Syntax Notes
{
DRAWGRIDLAST = <boolean>
DRAWBORDER = <boolean> Not available in 3D.
LINETHICKNESS <op> <dexp>
COLOR = <color>
ISFILLED = <boolean>
FILLCOLOR = <color>
USELIGHTSOURCETOFILL = <boolean> Only available for 3D.
LABELSALLSIDES = <boolean>
TICKSALLSIDES = <boolean>
EXTENTS <<rect>> Not available in 3D.
}
Example: Turn on the grid area border for a 2-D plot and change the line thickness to be 2
percent:
$!TWODAXIS
GRIDAREA
{
DRAWBORDER = YES
LINETHICKNESS = 2
}
<<gridlinedetail>>
Description: Change settings for axis gridlines.
Expands to:
Syntax Notes
{
COLOR = <color>
SHOW = <boolean>
LINEPATTERN = <linepattern>
PATTERNLENGTH <op> <dexp>
LINETHICKNESS <op> <dexp>
CUTTOFF = <double> Theta only.
}
Example: Set the line pattern for minor gridlines for the X-axis in a 3-D plot to be dashed:
$!THREEDAXIS
XDETAIL
{
256
<<ijk>>
MINORGRIDLINES
{
LINEPATTERN = DASHED
}
}
<<ijk>>
Description: Set an I-, J- or K-index.
Expands to:
Syntax Notes
{
I <op> <integer>
J <op> <integer>
K <op> <integer>
}
Example: Set the I- and J-index skip for vectors to 2 for all zones:
$!FIELDMAP
VECTOR
{
IJKSKIP
{
I = 2
J = 2
}
}
<<indexrange>>
Description: Set an index range.
257
Expands to:
Syntax Notes
{
MIN <op> <integer>
MAX <op> <integer>
SKIP <op> <integer>
}
Example: Change the plot so the data set shows I-planes 3, 5, and 7 for zones 1 to 3:
$!FIELDMAP [1-3]
SURFACES
{
SURFACESTOPLOT = IPLANES
IRANGE
{
MIN = 3
MAX = 7
SKIP = 2
}
}
<<numberformat>>
Description: Set the format used to draw a number.
258
<<papersize>>
Expands to:
<<papersize>>
Description: Change dimensions or hardclip offsets for LETTER, DOUBLE, A3, A4,
CUSTOM1 and CUSTOM2 paper sizes.
259
Expands to:
Syntax Notes
{ All values are in inches.
WIDTH <op> <dexp>
HEIGHT <op> <dexp>
LEFTHARDCLIPOFFSET <op> <dexp>
RIGHTHARDCLIPOFFSET <op> <dexp>
TOPHARDCLIPOFFSET <op> <dexp>
BOTTOMHARDCLIPOFFSET <op> <dexp>
}
Example: Change the left hardclip offset for LETTER size paper to be 0.25 inches:
$!PAPER
PAPERSIZEINFO
{
LETTER
{
LEFTHARDCLIPOFFSET = 0.25
}
}
<<precisegrid>>
Description:Change settings for the precise dot grid.
Expands to:
Syntax Notes
{
INCLUDE = <boolean>
COLOR = <color>
SIZE = <double> Size is in centimeters.
}
Example:
260
<<rect>>
<<rect>>
Description: Change settings for a rectangle. The rectangle is defined using two points (X1,Y1) and
(X2,Y2).
Expands to:
Syntax Notes
{ Units are based on the parent command.
X1 <op> <dexp>
Y1 <op> <dexp>
X2 <op> <dexp>
Y2 <op> <dexp>
}
Example: Set the 2-D axis grid area to be positioned 10 percent from all edges of the frame:
$!TWODAXIS
AREASTYLE
{
EXTENTS
{
X1 = 10
Y1 = 10
X2 = 90
Y2 = 90
}
}
<<refscatsymbol>>
Description: Set the attributes for the reference scatter symbol.
261
Expands to:
Syntax Notes
{
SHOW = <boolean>
COLOR = <color>
LINETHICKNESS = <dexp>
ISFILLED = <boolean>
FILLCOLOR = <color>
MAGNITUDE = <dexp>
XYPOS <<xyz>>
SYMBOLSHAPE <<symbolshape>>
}
Example: Change the fill color of the reference scatter symbol to be green:
$!GLOBALSCATTER
REFSCATSYMBOL
{
FILLCOLOR = GREEN
}
<<renderconfig>>
Description: Set the attributes for OpenGL rendering.
262
<<renderconfig>>
Expands to:
Syntax Notes
{
POLYGONOFFSETEXTBIASFACTOR = <double>
STIPPLEALLLINES = <stipplemode> If thin patterned lines are not drawn correctly, set
STIPPLEALLLINES to ALL.
DEPTHBUFFERSIZE = <integer> For low memory graphics cards, the depth buffer
size may need to be reduced.
MINBITSPERRGBPLANE = <integer> Specify the minimum number of bits used for
each of the planes in the image buffer.
DOEXTRADRAWFORLASTPIXEL = <boolean> Sometimes the last pixel for stroked font
characters is not drawn If so, turn
DOEXTRADRAWFORLASTPIXEL on.
MAXSTRIPLENGTH = <integer> Some graphics cards have problems with long
strips. Use MAXSTRIPLENGTH to reduce the
strip length.
MAXPRIMATIVESPERBLOCK = <integer> Some graphics cards have problems with large
numbers of graphics primitives in a single block.
Use MAXPRIMATIVESPERBLOCK to reduce
the number of primitives delivered to the
graphics hardware in a single block.
CONSTANTLYUSESCISSORING = <boolean> Turn ConstantlyUseScissoring on if
you see lines extending outside the borders of
the frame. There is a slight performance penalty
when using this option.
USEQUADSTRIPS = <boolean> If some shaded or contour flooded quads or
triangles do not appear or are black, try turning
this off.
USETRIANGLESTRIPS = <boolean> As with USEQUADSTRIPS, try turning off
USEQUADSTRIPS before turning
USETRIANGLESTIPS off. Turning off both
options will result in reduced performance, but
may help fix errors caused by buggy graphics
card drivers.
TRIANGULATEFILLEDPOLYGONS = <boolean> As with USEQUADSTRIPS, try turning on
TRIANGULATEFILLEDPOLYGONS if you are
still experiencing problems even after turning off
USETRIANGLESTRIPS and
USEQUADSTRIPS.
USEGLCOLORMATERIALFUNCTION = <boolean> Some graphics cards have problems with an
OpenGL’s glColorMaterial function.
Higher performance (especially for continuous
contour flooded plots) can be achieved when it is
used. However, it may need to be turned off if
you are experiencing problems.
MAXTEXTURESIZE = <integer>
FORCESMOOTHSHADINGFORLIGHTING = <boolean>
ADJUSTRECTANGLERIGHTANDBOTTOM = <boolean>
}
Example: Force all line drawing to include the last point in the line. Also, make the size of the
depth buffer to be at least 32 bits.
$!INTERFACE
263
OPENGLCONFIG
{
SCREENRENDERING
{
DOEXTRADRAWFORLASTPIXEL = TRUE
DEPTHBUFFERSIZE = 32
}
}
<<rgb>>
Description: Set a color value by assigning values to its red, green, and blue components.
Expands to:
Syntax Notes
{
R <op> <integer>
G <op> <integer>
B <op> <integer>
}
Example: Change the CUSTOM3 basic color to be light green:
$!BASICCOLOR
CUSTOM 3
{
R = 80
G = 255
B = 80
}
<<shademap>>
Description: Map colors on the screen to shades of gray for monochrome hardcopy output.
264
<<symbolshape>>
Expands to:
Syntax Notes
{ Shade values can range from 0 (black) to 100
BLACKSHADE = <dexp> (white).
REDSHADE = <dexp>
GREENSHADE = <dexp>
BLUESHADE = <dexp>
CYANSHADE = <dexp>
YELLOWSHADE = <dexp>
PURPLESHADE = <dexp>
WHITESHADE = <dexp>
CUSTOM1SHADE = <dexp>
CUSTOM2SHADE = <dexp>
CUSTOM3SHADE = <dexp>
CUSTOM4SHADE = <dexp>
CUSTOM5SHADE = <dexp>
CUSTOM6SHADE = <dexp>
CUSTOM7SHADE = <dexp>
CUSTOM8SHADE = <dexp>
}
Example: Make blue flooded regions map to 50 percent gray:
$!PRINTSETUP
MONOFLOODMAP
{
BLUESHADE = 50
}
<<symbolshape>>
Description: Set a symbol shape. Symbols can be a geometric shape (circle, square, and so forth) or an
ASCII character.
265
Expands to:
Syntax Notes
{
ISASCII = <boolean>
ASCIISHAPE
{
USEBASEFONT = <boolean>
FONTOVERRIDE = <font>
CHAR = <string>
}
GEOMSHAPE = <geomshape>
}
Example: Change the symbol shape for symbols drawn with line map 3 to use circles:
$!LINEMAP[3]
SYMBOLS
{
SYMBOLSHAPE
{
ISASCII = FALSE
GEOMSHAPE = CIRCLE
}
}
<<textbox>>
Description: Change settings for the optional box around a text label.
Expands to:
Syntax Notes
{
BOXTYPE = <textboxtype>
MARGIN <op> <dexp>
LINETHICKNESS <op> <dexp>
COLOR = <color>
FILLCOLOR = <color>
}
Example: See example for <<textbox>>.
266
<<textshape>>
<<textshape>>
Description: Change settings related to text font and character height.
Expands to:
Syntax Notes
{
FONT = <font>
SIZEUNITS = <sizeunits>
HEIGHT <op> <dexp>
}
Example: Add a text label in the center of the frame using Times Roman font. Make the text height
12 point. Include a box around the text with a line thickness of one percent:
$!ATTACHTEXT
XYPOS {
X = 50
Y = 50
}
TEXTSHAPE
{
FONT = TIMES
}
BOX
{
BOXTYPE = HOLLOW
LINETHICKNESS = 1
}
TEXT = ’Hi Mom’
<<ticklabeldetail>>
Description: Change settings for the text used to label axis tick marks.
267
Expands to:
Change the color for X-axis tick mark labels in a 2-D plot to be red:
$!TWODAXIS
XDETAIL
{
TICKLABEL
{
COLOR = RED
}
}
<<tickmarkdetail>>
Description: Assign attributes for axis tick marks.
268
<<volumeobjectstoplot>>
Expands to:
<<volumeobjectstoplot>>
Description: Specifies what volume objects are to be displayed.
Expands to:
Syntax Notes
{
SHOWISOSURFACES = <boolean>
SHOWSLICES = <boolean>
SHOWSTREAMTRACES = <boolean>
}
Example: $!FIELD
VOLUMEMODE
269
{
VOLUMEOBJECTSTOPLOT
{
SHOWISOSURFACES = NO
SHOWSLICES = YES
SHOWSTREAMTRACES = YES
}
}
<<xy>>
Description: Change settings for an (X,Y) position.
Expands to:
Syntax Notes
{
X <op> <dexp>
Y <op> <dexp>
}
Example: See the XYPOS parameter in the example for <<textshape>>.
<<xyz>>
Description: Change settings for an (X, Y, Z) triplet.
Expands to:
Syntax Notes
{
X <op> <dexp>
Y <op> <dexp>
Z <op> <dexp>
}
Example: Change the scale factor on the Z-axis to be 0.5:
$!GLOBALTHREED
AXISSCALEFACT
{
270
<<zebrashade>>
Z = 0.5
}
<<zebrashade>>
Description: Change zebra shading attributes.
Expands to:
Syntax Notes
{
INCLUDE = <boolean>
ISTRANSPARENT = <boolean>
COLOR = <color>
}
Example: Turn on zebra shading and make the zebra shade color to be black:
$!GLOBALCONTOUR
COLORMAPFILTER
{
ZEBRA
{
INCLUDE = TRUE
COLOR = BLACK
}
}
271
272
Chapter 11 Parameter Assignment
Values, Expressions, and
Arithmetic and Logical
Operators
273
Table 11-1. Parameter Assignment Values.
274
Table 11-1. Parameter Assignment Values.
275
Table 11-1. Parameter Assignment Values.
276
Table 11-1. Parameter Assignment Values.
277
Table 11-1. Parameter Assignment Values.
<relop> <, >, <=, >=, ==, != (not equal to), <> (not equal to). GREATERTHAN, LESSTHAN,
EQUALTO, NOTEQUALTO
TEXTUREFILTER, LANCZOS2FILTER, LANCZOS3FILTER, BOXFILTER,
<resizefilter> TRIANGLEFILTER, BELLFILTER, BSPLINEFILTER, CUBICFILTER,
MITCHELFILTER, GAUSSIANFILTER
<rgblegendorientation> RGB, GBR, BRG, RBG, BGR, GRB
<rgbmode> SPECIFYRGB, SPECIFYRG, SPECIFYRB, SPECIFYGB
X, Y, Z, ALPHA, THETA, PSI, HORZROLLERBALL, VERTROLLERBALL,
<rotateaxis>
TWIST, ABOUTVECTOR
<rotateoriginlocation> VIEWER, DEFINEDORIGIN
<rotationmode> XYZAXIS, SPHERICAL, ROLLERBALL
<scope> LOCAL, GLOBAL
<set> [,<setspecifier>, <setspecifier>, ..., ]
<setspecifier> <integer>, <integer>-<integer>[:<integer>]
<shadetype> SOLIDCOLOR, PANELED, GOURAUD, COLOREDPANELED,
<sidebarsizing> MAXOFALL, DYNAMIC
<sizeunits> GRID, FRAME, POINT
<skipmode> BYINDEX, BYFRAMEUNITS
VOLUMEZONES, SURFACEZONES, SURFACESOFVOLUMEZONES,
<slicesource> LINEARZONES
<slicesurface> XPLANES, YPLANES, ZPLANES, IPLANES, JPLANES, KPLANES
<sortby> NONE, BYDEPENDENDTVAR, BYINDEPENDENTVAR, BYSPECIFICVAR
<specifyrgb> SPECIFYRGB, SPECIFYRG, SPECIFYRB, SPECIFYGB
<spherescatterrenderquality> LOW, MEDIUM, HIGH.
<standardcolormap> SMRAINBOW, LGRAINBOW, MODERN, GRAYSCALE, TWOCOLOR
<stipplemode> ALL, CRITICAL, NONE
<streamdirection> FORWARD, REVERSE, BOTH
SURFACELINE, VOLUMELINE, VOLUMERIBBON, VOLUMEROD,
<streamtype> TWODLINE
278
Table 11-1. Parameter Assignment Values.
279
11 - 2 Assignment Value Expressions
Simple values are literal constants such as 1, 3, 3.5, 2.5e17. Complex expressions are identified by
an equation surrounded by '(' and ')' delimiters.
Expressions can be used within any layout or macro file and support all of the common operators
and functions familiar to most C and FORTRAN programmers.
Arithmetic operators include the common multiply, divide, add, and subtract (*, /, + and -), as
well as a few others (^ and **) that are worth noting. The raise operator (^, or **) returns the
result of raising the first number by the second.
Expressions may also contain macro variables and an assortment of useful functions and constants.
Following are tables of supported functions and constants and a short explanation for each:
acos(x) Arc cosine of x between -1 and 1. Return an angle between 0 and p radians.
asin(x) Arc sine of x between -1 and 1. Return an angle between -p/2 and p/2 radians.
exp(x) Exponential of x.
max(x,y) Larger of x or y.
min(x,y) Smaller of x or y.
pow(x,y) xy.
280
Table 11-1. Functions supported by Tecplot.
PI p.
The following table shows the operator precedence and associativity. Operators with higher prece-
dence are listed in the higher rows of the table, while operators that are in the same row have the
same precedence. The associativity describes how an operator associates with its operand.
Unlike C, relational expressions do not evaluate to 0 or 1, instead, they evaluate to true or false. As
such, they may only be used with other logical operators, or with the conditional operator.
281
Examples of common expressions used in the Tecplot macro language follow (note that all expres-
sions evaluate to a simple, <dexp>, value):
282
For example, the following is a valid macro command since it has a valid expression syntax and a
valid control command syntax:
283
284
Chapter 12 Raw Data
Some macro commands contain a “raw data” section. A raw data section is defined by using the
keyword RAWDATA followed by the raw data values unique to the macro command. Most raw data
sections start with a single count value which represents the number of blocks of raw data followed
by the blocks of raw data themselves. The following table lists the raw data sections found in Tec-
plot macros.
Value
Type(s)
Raw Data Name per Block Notes
<addoncommandrawdata> <string> Each line of the RAWDATA section contains an arbitrary text
string. The only requirement is that the character sequence “$!”
(a dollar sign followed by an exclamation mark) cannot appear
anywhere in the section. Comments can be inserted by using #
(the octothorp). If encountered, everything to the right of the #
(including the # itself) will be ignored.
<colormaprawdata> <integer> Red.
<integer> Green.
<integer> Blue.
<contourlevelrawdata> <dexp> Contour level.
<geometryrawdata> <xyrawdata> Each block contains a block of <xyrawdata>, which forms a
(Line segment geometry) single polyline within the geometry.
<geometryrawdata> <xyzrawdata> Each block contains a block of <xyzrawdata>, which forms a
(3D Line segment) single polyline within the geometry.
<geometryrawdata> (circle) <dexp>a Only one value supplied. Value is the radius.
<geometryrawdata> (ellipse) <dexp> a Two values supplied. Values are RX and RY.
<dexp>a
<geometryrawdata> <dexp>a Two values supplied. Values are width and height.
(rectangle)
<dexp>a
<geometryrawdata> (square) <dexp>a Only one value supplied. Value is the width.
<xyrawdata> <dexp> X.
<dexp> Y.
<xyzrawdata> <dexp> X.
<dexp> Y.
<dexp> Z.
a. A count value does not precede the raw data in this case.
Examples:
285
Example 1: Raw data for a circle with radius equal to 1.7:
RAWDATA
1.7
Example 2: Raw data for a line segment geometry with two segments. Segment 1 has 4 points and
segment 2 has 3 points:
RAWDATA
2
4
1.5 2.2
1.7 2.4
1.9 2.8
2.1 3.0
3
1.1 1.7
1.2 1.9
1.3 2.0
Example 5: For greater control of contour levels in a macro, set the levels with
RAWDATA. This example allows you to choose the number of levels, then sets
new levels based on the minimum and maximum values of the current contour
variable.
286
Instructions = "Enter the number of contour levels."
$!Varset |Delta| = ((|maxc| - |minc|)/|numlevels|)
$!CONTOURLEVELS DELETERANGE
CONTOURGROUP = 1
RANGEMIN = |minc|
RANGEMAX = |maxc|
$!Varset |newlevel| = (|minc| + |delta|/2)
$!Loop |numlevels|
$!CONTOURLEVELS ADD
CONTOURGROUP = 1
RAWDATA
1
|newlevel|
287
288
Chapter 13 Macro Language
Limitations
The only macro control commands allowed in stylesheets and layout files are:
$!COLORMAP
Layout files, stylesheet files and colormap files cannot contain any of the following commands:
$!OPENLAYOUT
$!READSTYLESHEET
$!LOADCOLORMAP
Only SetValue macro commands are allowed in the Tecplot configuration file.
The $!LIMITS command can be used only in the Tecplot configuration file.
The $!FIELDMAP and $!LINEMAP commands may be used in the configuration file but they may
not specify an individual zone or line map. This special use of $!FIELD and $!LINEMAP allows
you to change the default attributes for all zones and line mappings when they are initialized in Tec-
plot.
The file name referenced in the $!INCLUDEMACRO command cannot use Tecplot macro variables.
Size limitations:
289
Maximum number of characters in macro variable name 31
Maximum number of characters in macro function name Unlimited.
Maximum number of macro variables 400
290
Index
Symbols
273, 274, 275, 276, 277, 278, 279
"$!" 25
$ 206
$!ACTIVEFIELDFILEMAPS 67
$!ACTIVELINEMAPS 67
$!ADDMACROPANELTITLE 68
$!ADDONCOMMAND 68
$!ALTERDATA 69, 70, 71
$!ANIMATECONTOURLEVELS 71
$!ANIMATEIJKBLANKING 72
$!ANIMATEIJKPLANES 73, 74
$!ANIMATELINEMAPS 75, 76
$!ANIMATESLICES 74, 76
$!ANIMATESTREAM 75, 77
$!ANIMATETIME 78
$!ANIMATEZONES 78
$!ATTACHDATASET 79
$!ATTACHGEOM 80, 81
$!ATTACHTEXT 82, 83, 267
$!BASICCOLOR 84, 264
$!BASICSIZE 84, 85, 252
$!BLANKING 85, 86
$!BRANCHCONNECTIVITY 87
$!BRANCHFIELDDATAVAR 87
$!BREAK 88
$!COLORMAP 133, 134
in color map files 289
$!COLORMAPCONTROL COPYSTANDARD 89
$!COLORMAPCONTROL REDISTRIBUTECONTROLPOINTS 88, 89
$!COLORMAPCONTROL RESETTOFACTORY 89
$!COMPATIBILITY 89
$!CONTINUE 90
$!CONTOURLABELS 90
$!CONTOURLABELS ADD 90, 91
$!CONTOURLABELS DELETEALL 91
$!CONTOURLEVELS ADD 92
$!CONTOURLEVELS DELETENEAREST 93
$!CONTOURLEVELS DELETERANGE 93
$!CONTOURLEVELS NEW 94
$!CONTOURLEVELS RESET 94, 95
$!CONTOURLEVELS RESETTONICE 95
291
Index
$!CREATECIRCULARZONE 95
$!CREATECONTOURLINEZONES 97
$!CREATEFEBOUNDARY 97
$!CREATEFESURFACEFROMIORDERED 98
$!CREATEISOZONES 98
$!CREATELINEMAP 98
$!CREATEMIRRORZONES 99
$!CREATENEWFRAME 99, 100
$!CREATERECTANGULARZONE 100
$!CREATESIMPLEZONE 101
$!CREATESLICEZONEFROMPLANE 101, 102
$!CREATESLICEZONES 102
$!CREATESTREAMZONES 102
$!DATASETUP 103
$!DEFAULTGEOM 104
$!DEFAULTTEXT 104
$!DELAY 105
$!DELETEAUXDATA 105
$!DELETELINEMAPS 106
$!DELETEZONES 106, 107
$!DOUBLEBUFFER OFF 107
$!DOUBLEBUFFER ON 107, 108
$!DOUBLEBUFFER SWAP 107, 108
$!DRAWGRAPHICS 108
$!DROPDIALOG 108
$!DUPLICATELINEMAP 109
$!DUPLICATEZONE 109
$!ELSE 110
$!ELSEIF 111
$!ENDIF 147
$!ENDLOOP 167
$!ENDWHILE 218
$!EXPORT 112, 113
$!EXPORTCANCEL 112
$!EXPORTFINISH 113
$!EXPORTNEXTFRAME 113
$!EXPORTSETUP 113, 114, 115
$!EXPORTSTART 115
$!EXTRACTFROMGEOM 115
$!EXTRACTFROMPOLYLINE 116
$!FIELDLAYERS 117
$!FIELDMAP 117, 257, 258
restrictions on using 289
$!FILECONFIG 120
$!FONTADJUST 123
$!FRAMECONTROL DELETETOP 124
292
$!FRAMECONTROL FITALLTOPAPER 124
$!FRAMECONTROL POP 124, 125
$!FRAMECONTROL POPATPOSITION 125
$!FRAMECONTROL POPBYNAME 125
$!FRAMECONTROL PUSH 126
$!FRAMECONTROL PUSHBYNAME 126
$!FRAMECONTROL PUSHTOP 126
$!FRAMENAME 127
$!FRAMESETUP 127
$!GETAUXDATA 128
$!GETCONNECTIVITYREFCOUNT 129
$!GETCURFRAMENAME 129
$!GETFIELDVALUE 130
$!GETFIELDVALUEREFCOUNT 130
$!GETNODEINDEX 131
$!GETUSERINPUT
replaced by $!PROMPTFORTEXTSTRING 183
$!GETVARLOCATION 132
$!GETVARNUMBYNAME 132
$!GLOBALCOLORMAP 133
$!GLOBALCONTOUR 134, 137, 253, 271
$!GLOBALEDGE 138
$!GLOBALFRAME 138
$!GLOBALLINEPLOT 138
$!GLOBALPOLAR 140
$!GLOBALRGB 140
$!GLOBALSCATTER 141, 262
$!GLOBALTHREED 101, 143, 270
$!GLOBALTHREEDVECTOR 145
$!GLOBALTIME 146
$!GLOBALTWODVECTOR 146
$!IF 147
$!INCLUDEMACRO 148
restrictions on using 289
$!INTERFACE 148
$!INVERSEDISTINTERPOLATE 157
$!ISOSURFACEATTRIBUTES 158
$!ISOSURFACELAYERS 159
$!KRIG 160
$!LAUNCHDIALOG 160
$!LIMITS 161, 289
$!LINEARINTERPOLATE 161
$!LINEMAP 162, 266
restrictions on using 289
$!LINEPLOTLAYERS 165
$!LINKCOLORMAPS 165
293
Index
$!LINKING 165
$!LOADADDON 166
$!LOADCOLORMAP 167
restrictions on using 289
$!LOOP 167
$!LOOP-ENDLOOP 88
$!MACROFUNCTION 23, 167
$!NEWLAYOUT 168
$!OPENLAYOUT 168
restrictions on using 289
$!PAPER 16, 169, 260
$!PAUSE 170
$!PICK ADD 171
$!PICK ADDALL 172
$!PICK ADDALLINRECT 172
$!PICK CLEAR 174
$!PICK COPY 174
$!PICK CUT 174
$!PICK EDIT 174
$!PICK MAGNIFY 176
$!PICK PASTE 177
$!PICK POP 177
$!PICK PUSH 177
$!PICK SETMOUSEMODE 177
$!PICK SHIFT 178
$!PLOTTYPE 178
$!POLARDAXIS 179
$!POLARTORECTANGULAR 179
$!POLARVIEW 180
$!PRINT 180
$!PRINTSETUP 180, 265
$!PROMPTFORFILENAME 182
$!PROMPTFORTEXTSTRING 183
$!PROMPTFORYESNO 183
$!PROPAGATELINKING 184
$!PUBLISH 184
$!QUIT 185
$!RAWCOLORMAP 185
$!READDATASET 185
$!READSTYLESHEET 188
restrictions on using 289
$!REDRAW 188
$!REDRAWALL 189
$!REMOVEVAR 189
in stylesheets and layout files 289
$!RENAMEDATASETVAR 189
294
$!RENAMEDATASETZONE 190
$!RESET3DAXES 190
$!RESET3DORIGIN 190
$!RESET3DSCALEFACTORS 191
$!RESETVECTORLENGTH 191
$!ROTATE2DDATA 191
$!ROTATE3DVIEW 192
$!RUNMACROFUNCTION 192
$!SAVELAYOUT 192
$!SET3DEYEDISTANCE 193
$!SETAUXDATA 193
$!SETDATASETTITLE 194
$!SETFIELDVALUE 194
$!SETFRAMEBACKGROUNDCOLOR 195
$!SETSTYLEBASE 196
$!SHARECONNECTIVITY 196
$!SHAREFIELDDATAVAR 197
$!SHIFTLINEMAPSTOBOTTOM 197
$!SHIFTLINEMAPSTOTOP 197
$!SHOWMOUSEPOINTER 198
$!SKETCHAXIS 198
$!SLICEATRRIBUTES 199
$!SMOOTH 201
$!STREAMATTRIBUTES 202
$!STREAMTRACE ADD 204, 205
$!STREAMTRACE DELETEALL 205
$!STREAMTRACE DELETERANGE 206
$!STREAMTRACE RESETDELTATIME 206
$!STREAMTRACE SETTERMINATIONLINE 206
$!SYSTEM 207
$!THREEDAXIS 207, 255, 256
$!THREEDVIEW 208
$!TRANFORMCOORDINATES 209
$!TRIANGULATE 210
$!TWODAXIS 211, 247, 248, 249, 251, 256, 259, 261, 268
$!VARSET 17, 22, 212
in stylesheets and layout files 289
$!VIEW AXISFIT 213
$!VIEW AXISNICEFIT 214
$!VIEW CENTER 214
$!VIEW COPY 215
$!VIEW DATAFIT 215
$!VIEW FIT 215
$!VIEW LAST 215
$!VIEW MAKECURRENTVIEWNICE 215
$!VIEW NICEFIT 216
295
Index
296
<double> 275
<drift> 275
<edgesetting> 275
<epspreviewimagetype> 275
<errorbartype> 276
<exportformat> 276
<expression> 276
<font> 276
<frameaction> 276
<framemode> 276
<functiondependency> 276
<geomshape> 276
<geomtype> 276
<ijkblankmode> 276
<ijkplane> 276
<imagestyle> 276
<initialdialogplacement> 273
<integer> 276
<krigdrift> 276
<labelalignment> 276
<labeltype> 276
<lightingeffect> 276
<linearinterpmode> 276
<linepattern> 276
<macrointrinsic> 277
<meshplottype> 277
<objectalign> 277
<palette> 277
<papergridspacing> 277
<paperrulerspacing> 277
<papersize> 277
<pointerstyle> 277
<pointselection> 277
<pointstoplot> 278
<printerdriver> 278
<quickcolormode> 278
<readdataoption> 278
<rotateaxis> 278
<rotateoriginlocation> 278
<rotationmode> 278
<sizeunits> 278
<skipmode> 278
<slicesource> 278
<standardcolormap> 278
<stipplemode> 278
<streamdirection> 278
<streamtype> 278
<sunrasterformat> 279
<surfacestoplot> 279
<textanchor> 279
297
Index
<textboxtype> 279
<tickdirection> 279
<tiffbyteorder> 279
<translucency> 279
<twoddraworder> 279
<valueblankcellmode> 279
<valueblankrelop> 279
<valueformat> 279
<vectorplottype> 279
<viewmode> 279
<workspaceviewmode> 279
Numerics
2D axes
settings 211
2D draw order 279
2D field plots 91
vector plots 146
3D axes
attributes 207
reset 190
3D plots
global attributes 143, 208
3D rotation 278
3D vector plot attributes 145
A
Action commands 67
Active planes 276
Active zones 67
Add-on
loading 166
Add-on commands
send to add-on 68
Add-on style 273
ADDONCOMMAND macro 225
ALIGNINGCONTOURLABELS 128
Alignment 277
ALLOWDATAPOINTSELECT 148
ALLOWHWACCELERATION 154
Alter data command 69
Anchor 247
text 82
Angle
rotate 3D 143, 192, 208
Animate commands 71–79
ANIMATESTREAKLINES macro command 225, 227
Animation
contour levels 71–??, 71
frames 75
298
IJK blanking 72
IJK planes 73
iso-surface 74
line mappings 75
slice 76
stream markers 77
streamtraces 77
Time 78
zone 78
zones 78
APPROXIMATIONMODE 148
Area style 248
Arithmetic functions 280
Arrowhead
angle 80
attachment 80, 273
size 80
style 80, 273
ARROWHEADSIZES 84
ATTACHINTEGRATIONRESULTS
macro command 225, 227
AUTOREDRAWISACTIVE 148
Auxiliary data 128
delete 105
macro variables 17
setting 193
Axes 213, 214, 248, 249, 250
2D settings 211
3D attributes 207
adjust to center data 214
adjust to nice fit 216
adjust to nice view 215
assign variables 179, 207, 211
attributes 247, 248, 249, 250, 268
dependent mode 273
fit to data 213
grid area 248, 255
grid areas 255
gridlines 256
in Sketch frame mode 198
labels 259
nice fit 214
number 213, 214
polar
attributes 179
reset 190
reset scale factors 191
tick marks 268
attributes 268
label formatting 267
299
Index
labels 268
title mode 273
title position 273
variables 208
XY Line attributes assignments 224
B
Back buffer
swap to front 108
Backing store 273
BACKINGSTOREMODE 148
basicsizelist subcommand 251
BEEPONFRAMEINTERRUPT 148
Blanking 85, 86
animate 72
IJK 85
Value 279
value 85
BOLDFACTOR 123
Boundary condition 273
Box type 273
Break out command 88
Buffer commands 107–108
C
CACHELIGHTDISPLAYLISTSONLY 149
CALCPARTICLEPATH macro command 225, 228
CALCTURBULENCEFUNCTION
macro command 225, 231
CALCULATE macro command 225, 232
CALCULATEACCURACY macro command 225, 233
Case of characters 17
Cell labels 142
Center
view 214
Character sequence 274
Circle
raw data 285
Circular zone 95
Clipping 80
Color
fill color 80
flooding 254
palette 277
rgb 84
text 82
Color map 88, 133, 274
active 88, 89
assignment value options 278
color spectrum 133
300
contour 252
override 253
control 88, 274
control commands 88–90
control points 88, 89, 252
distribution 252, 274
dynamic 18
files 289
gray scale output 264
loading 167
override 253, 254
raw data 285
raw user-defined 252
reset to default 133
RGB values 185
standard 89
user-defined 89
write to file 222
Color palette 277
Color text 82
COLORMAPFILE 120
Colors 80, 84, 274
assigning RGB values 264
quickedit 278
RGB 140, 264
set command in macros 84
shading 264
zebra shading 271
Command Line 7
Command parameters 15
Conditional execute 218
Conditional expressions 274
Configuration
OpenGL 262
Configuration file
SetValue macro commands 289
Configuring dropdown menus 251
Constants 281
Continue command 90
Continue to execute a set of commands 218
Contour
color map 252
override 253
zebra shading 271
line mode 274
plot type 274
Contour color map 89
Contour commands 90–95
Contour labels 91, 136, 274
Contour levels 94, 274
301
Index
animate 71
animation 71
delete 93
new 94
raw data 285
Contour plot
animation 71–??
attributes 117
color map 89, 133
global changes 134
label 90, 91
labels 136
levels 71
add 92
copy to another frame 223
delete 93
reset 94, 95
show 117
variable 136
Control commands
If...Endif 147, 282
Control points 88, 89
contour color maps 252
Coordinates
convert polar to rectangular 179
Copy picked objects 174
Current frame
attach text 82
Curve details
write to file 222
Curve equations
write 222
Cut
delete picked objects 174
Cutaway views
blanking 85
D
Data 149
adjust axes to fit 213, 214
center in view 214
fit to axis grid area 215
read 185
reading 278
rotate 191
rotating 17
smooth 201
Data alteration 69
Data extraction 115
Data fit 215
302
Data labels 142
Data manipulation 69
polar to rectangular coordinates 179
Data operations
zone number specification 71
Data point
moving 148
select 148
Data set
attach to frame command 79
naming 194
variable 130
write 222
Data set variables
set value (from macro variable) 194
Data sharing
branching connectivity 87
branching variables 87
connectivity 196
field variables 197
reference count 130
Data type 100, 274
DATAFILEVARLOADMODE 120
Debugging macro files 8
Debugging macros 7
Delay 105
Delete
objects 174
Delete picked objects 174
Derivative position 274
DERIVATIVEBOUNDARY 149
Destination
map 109
zone 157
Dialog
drop a Tecplot dialog 108
Display
render 156
Display message 170
DISPLAYBOUNDARIES
macro command 226, 234
DOAUTOFNAMEEXTENSION 120
Double 275
Double buffer
compound functions 107
turning off 107
turning on 107
Double expression 275
Draw order 279
Line mappings 197
303
Index
E
Edge attributes 118
Edge plot
show 117
Edge setting 275
Edit
global edit on picked objects 174
Ellipse
raw data 285
ENABLEDELAYS 151
ENABLEINTERRUPTS 151
ENABLEPAUSES 151
ENABLEWARNINGS 151
Encapsulated PostScript
preview image 275
EndLoop command 167
Environment variables 21
EQUATIONFILE 120
Equations 69
Error bars
plot types 276
Examples
2D axes attributes 179, 211
3D axis attributes 208
activating field zones for plotting 67
Adding contour levels 92
adding Line maps 67
adding zones to the set of active zones 67
assigning attributes for field plots 119
assigning axes attributes 249
assigning control point for small rainbow color map 134
assigning the medium line pattern length 85
attributes applied to all frames 138
attributes for default geometry 104
attributes for exporting image files 114
axis grid area borders 248, 256
axis gridlines settings 256
axis modes 199
axis tick mark attributes 269
axis tick mark labels 268
basic size values 252
circle raw data 286
color map control points 252
contour attributes 137
304
contour levels raw data 286
Create a new zone for each contour line on an existing contour plot. 97
Creating mirror zones 99
Deleting contour levels 93
edit picked objects 169, 176
inverse distance interpolation 158
Line legend and data labels 139
line mappings attributes 164
line plot layers on or off 165
line segment geometry raw data 286
macro function file 8
making Line maps active for plotting 67
making line maps active for plotting 67
making zones active for plotting 67
mapping monochrome hardcopy output 265
paper characteristics 170
paper size dimensions 260
path information 123
pick all in rectangle 173
positioning frame on the paper 127
Preplot launch command 103
print attributes 182
rectangle settings 261
removing Line maps 68
removing zones from the set of active zones 67
RGB values raw data 286
set parameters for dynamic frame attributes 128
setting (X,Y) positions 270
setting (X,Y,Z) triplets 270
setting 3D global attributes 144
setting attributes of 2D vector plots 147
setting attributes of 3D vector plots 145
setting attributes of default font 105
setting attributes of Tecplot interface 157
setting character spacing and sizing for fonts 123
setting color map overrides 253
setting color values 264
setting grid area borders 248, 256
setting I- J- and K-indices 257
setting IJK blankings 86
setting numbers formats 259
setting reference scatter symbols attributes 262
setting scatter attributes 143
setting some Tecplot limits 161
setting symbol shapes 266
setting text shapes 267
setting the red, green, and blue components 84
text box 266
turning on scatter layers 117
Using value-blankings 86
305
Index
F
FE boundary 97
FE surfaces 98
Field plots 117
contour attributes 134
plot layers 117
scatter attributes 141
Field value
setting 194
Field variable query 130
Fieldmaps
set active zones command 67
specify 67
File
open data set 185
open layout 168
save data set 222
save layout 192
File name
prompt for 182
File names 115, 116
File paths
configuration 120
Finite-element
create FE-surface zones 98
Finite-element data
zone boundary creation 97
First line of macro file 15
306
Flooded contour plots 274
FNAMEFILTER 120
Font 105, 276
Fonts 82
spacing 123
Formats
in macro variables 24
Formatting numbers 258
FORTRAN-like equations 69
Frame
attach data 79
attach to data set command 79
delete 124
invisible borders 155
layout 126
order 126
text (attach) 82
view last 215
Frame control commands 124–126
Frame coordinates 274
Frame manipulating 276
Frame modes 205, 276
Frame style
attributes 196
FRAMEHEADERFORMAT 138
FRAMEHEADERHEIGHT 138
Frames 79, 125
create 99
delete active frame 124
dynamic attributes 127
fit all into workspace view 219
fit frames to paper 124
fit selected frames in view 219
get name 129
number of frames 20
pop 124
push 126
setting global attributes 138
Frames with pick handles 220
FRAMETEXTSIZES 84
Functions
arithmetic 280
G
Geometries
copy to another frame 223
default attributes 104
Geometry
attach command 80
attach to frame 80
307
Index
attributes 104
color 80
defaults 104
extract data 115
Geometry attributes 80
Geometry raw data 285
Geometry type 80, 276
circle 276
ellipse 276
rectangle 276
square 276
Global attributes 133–140
Global edit
on picked objects 174
Graphics
turn drawing on or off 108
Gray scale output 264
Grid
precise dot 260
Grid area 255
Grid area border 248, 256
Grid area example 261
Grid coordinates 274
Grid lines 256
gridarea subcommand 255
gridlinedetail subcommand 256
Gridlines 256
Group 119
I
I-, J-, or K-indices
setting 257
If command 147
IJK Blanking 86
IJK blanking 85
animation 72
blanking domain 276
IJK index 257
ijk subcommand 257
IJK-indices
minimum/maximum as variables 18
IJK-planes
animation 73
Image
export 112, 113
attributes 114
Image style 276
IMAGERENDERING 154
Index ranges 257
setting 257
308
indexrange subcommand 257
Infinite
see Loop
Initial dialog placement 254
INITIAL3DSCALE 128
Initialdialogplacement 273
initialdialogplacement subcommand 254
INITIALPLOTFIRSTZONEONLY 152
INPUTDATAFILE 120
INPUTLAYOUTFILE 120
Integer 276
INTEGRATE macro command 226, 236
Interface
Data 149
launch dialog 160
render 156
set attributes 148
Internal macro variables 21
INTERPNPOINTS 149
Interpolation
inverse distance method 157
kriging 160
linear method 161
pointer selection 277
INTERPPTSELECTION 149
INTERRUPTCHECKINGFREQUENCY 152
Intrinsic values 277
INVDISTEXPONENT 149
INVDISTMINRADIUS 149
Inverse distance interpolation 157
I-ordered zones 211
ISFILLED 80
Iso-surface
animate 74
Iso-surfaces 158
Isosurfaces
zone creation 98
J
Jacobian
macro example 233
K
Krig drift 276
KRIGDRIFT 149
Kriging 160
Kriging Drift 275
KRIGRANGE 149
KRIGZEROVALUE 149
309
Index
L
Label
contour 90
Labels
tick marks 267
LARGESTEP 155
Layout
clear 168
new 168
printing to paper or file 180
saving 192
Layout files
macro control commands 289
Layouts
attach data set of another frame 79
opening 168
Light source shading 143, 208
change settings 133
Lighting effects 276
Limitations 289
Limits
set in Tecplot 161
Line mappings 67, 75, 109
animation 75
attributes 162
create 98
delete 106
draw order 197
duplicate 109
number of line mappings 20
set active mappings command 67
shift to bottom of list 197
shift to top of list 197
write coefficients 222
write curve information 222
line mappings
show symbols 165
Line maps
activate 67
attributes 289
defaults 289
see Line mappings 106
specify 67
Line pattern 80
Line patterns 276
Line plot layers 165
Line plots 75
setting global attributes 138
show lines 165
Line space
310
text 82
Line thickness 80
Linear interpolation 161
action on outside points 276
LINEARINTERPCONST 149
LINEARINTERPMODE 149
LINEPATLENGTHS 84
Lines
line plots 165
LINETHICKNESSES 85
Load data 185
Loading your own macro function file 8
Log axes 274
Loop
See also Infinite
Loop command 167
M
Macro command summary 25
Macro command syntax 15
Macro commands 5, 7, 15
ANIMATESTREAKLINES 225, 227
ATTACHINTEGRATIONRESULTS 225, 227
CALCPARTICLEPATH 225, 228
CALCTURBULENCEFUNCTION 225, 231
CALCULATE 225, 232
CALCULATEACCURACY 225, 233
conditionally processing 147
DISPLAYBOUNDARIES 226, 234
EXTRACTFLOWFEATURE 226, 235
EXTRAPOLATESOLUTION 226, 235
INTEGRATE 226, 236
macro variables 17
major 25
SAVEINTEGRATIONRESULTS 226, 238
SETFIELDVARIABLES 226, 239
SETFLUIDPROPERTIES 226, 240
SETGEOMETRYANDBOUNDARIES 226, 241
SETREFERENCEANDFIELDVARIABLES 243
SETREFERENCEVALUES 226
SETUNSTEADYFLOWOPTIONS 226, 243
spacing 16
Macro control commands 67
allowed in stylesheets and layouts 289
Break 88
Continue 90
Delay 105
include macro 148
Loop...Endloop 167
pause 170
311
Index
312
zoom 218
Magnify picked objects 176
Major macro commands 25
Managing Tecplot macros 7
Mandatory parameters 15
Mappings
delete 106
duplicate 109
Mass calculation example 238
Mass flux example 238
Mass-weighted average example 238
MAXCHRSINTEXTLABELS 161
MAXCUSTOMCOLORSININTERFACE 152
Maximum index 237
Maximum values
as variables 18
MAXNUMCONTOURLEVELS 161
MAXPREPLOTVARS 161
MAXPREPLOTZONES 161
MAXPTSINALINE 161
MEDIUMSTEP 155
Mesh attributes 118
Mesh plot
show 117
Mesh plots
plot types 277
Message
display 170
Minimum values
as variables 19
MINPIXELSFORDRAG 152
Mirror zones
create 99
Modern color maps 134
Modifiers
command-specific 15
Monochrome hardcopy 264
Mouse button assignments 273
Mouse mode
set for picking 177
Mouse pointer 277
Move picked objects 178
Movie files 71, 74, 75, 76, 77, 78, 79
N
Name
get frame name 129
Negative values 70, 237
Number format 258
Number formats 279
313
Index
O
Object
size 84
OKTOEXECUTESYSTEMCOMMAND 153
OpenGL
rendering settings 262
OpenGL rendering 262
OPENGLCONFIG 153
Operating system
using as variable 20
Operating system instructions 207
Operator associativity 281
Operator precedence 281
Optional box settings 266
Optional parameters 15
Order frames 124
Output
file configuration 120
OUTPUTASCIIDATAFILE 121
OUTPUTBINARYDATAFILE 121
OUTPUTLAYOUTFILE 121
OUTPUTLAYOUTPACKAGEFILE 121
Overrides
color map 253
P
Paper 259
color 169
fit within workspace view 219
grid spacing 277
set specifications 169
show grid 169
show ruler 169
size 259
Paper ruler spacing 277
Paper size 277
papersize subcommand 259
Parameter
assignment 15
314
Parameter Assignment Values 273
Parameter assignment values 245
Parameter assignments 15, 273
Parameter subcommands 15, 247
Parameters
data setup command 103
for CFD Analyzer macro commands 227
Parameters for dynamic frame attributes 127
Paste 177
from view paste buffer 216
Paths
configuring for output 120
Pattern length 81
Pause macro execution 170
PERCENTAGEOFPOINTSTOKEEP 154
Pick
copy picked objects 174
delete picked objects 174
global edit on picked objects 174
magnify picked objects 176
mouse mode set 177
move picked objects 178
object at given location 171
objects in rectangle 172
objects of type 172
objects to delete 174
paste picked objects from buffer 177
pop picked objects 177
push picked objects back 177
Pick commands 171–178
PICKHANDLEWIDTH 154
Planes 20
animate 73
Plot Approximation 277
Plot layers 117, 165
field plots 117
Plot Type 277
Plot Types
Vector 279
PLOTAPPROXIMATIONMODE 154
Plotting points 278
Points
write to file 222
Points to plot 278
POINTTEXTSIZES 85
Polar axes
attributes 179
Polar coordinates
convert to rectangular 179
Polyline
315
Index
Q
Query dialogs 183
Query functions 129–133
Quick Edit
colors 278
Quick Macro Panel 8, 168
title 68
QUICKCOLORMODE 154
Quit command 185
R
Range Parameters 70, 237
Raster Metafile 114
Raw data 101, 116, 207
addoncommandrawdata 285
circle 286
color map 285
contour level 285
contour levels 286
geometry 285
line segment geometry 286
RGB values 286
316
section of macro commands 285
square 285
values 285
XY 285
XYZ 285
Raw User-Defined color maps 252
RAWDATA
example 286
Read data 185
rect subcommand 261
Rectangle 261
raw data 285
Rectangles 261
settings 261
Rectangular zones
create 100
Redraw 188
Redraw All 189
Reference scatter symbol 142
attributes 261
Reference scatter symbols 261
refscatsymbol subcommand 261
Remove user-defined macro variable 189
rendconfig subcommand 262
Rendering
off-screen 156
with OpenGL 262
Retaining macro function 7
RGB 264
components 84
rgb subcommand 264
Rotate
2D plot 191
3D plots 143, 192, 208
Rotate a 3D plot
example 17
ROTATION
details 154
Rotation 278
axis 278
origin location 278
reset rotation origin 190
rotation origin 190
Ruler 169, 277
RULERPADDING 155
RULERTHICKNESS 155
RUNDISPLAYLISTSAFTERBUILDING 153
Running
macro function 23
Running macros
317
Index
S
Save
color map 222
curve information 222
data set 222
stylesheet 223
SAVEINTEGRATIONRESULTS
macro command 226, 238
SCALE 155
Scale factors
reset 191
Scatter
legend 142, 158
sizing by variable 142, 158
Scatter attributes 118
Scatter plot
show 117
Scatter plots 118
set global attributes 141
Scatter symbol attributes 261
Scatter symbols 261
Scope of text 81
Scratch data type 103
SCRATCHDATAFIELDTYPE 103
SCRBACKGROUNDCOLOR 155
SCREENRENDERING 154
Select objects 171
SETFIELDVARIABLES
macro command 226, 239
SETFLUIDPROPERTIES
macro command 226, 240
SETGEOMETRYANDBOUNDARIES
macro command 226, 241
SETREFERENCEANDFIELDVARIABLES
macro command 243
SETREFERENCEVALUES
macro command 226
Setting (X,Y) positions 270
Setting (X,Y,Z) triplets 270
Setting attributes
reference scatter symbols 261, 262
Setting color values 264
Setting I-, J-, or K-indices 257
Setting index ranges 257
Setting number formats 258
318
Setting symbol shapes 265
Setting zebra shading attributes 271
Settings
OpenGL rendering 262
SETUNSTEADYFLOWOPTIONS
macro command 226, 243
SetValue commands
in color map files 289
macro configuration files 289
Shade attributes 119
Shade maps 264
shademap subcommand 264
Shading 264
Shift picked objects 178
SHOWCONTINUOUSSTATUS 155
SHOWCOORDINATES 155
SHOWFRAMEBORDERSWHENOFF 155
-showpanel flag 8
SHOWSTATUSLINE 155
SHOWTEXTGEOMSINAPPROXVIEW 155
SHOWWAITDIALOGS 155
Simple zone
create 101
Single angle brackets 247, 273
Size 251
object 84
preference 84
set command in macros 84
Size limitations
macro control commands 289
Size lists 251
Size preferences 84
Size units 278
Sketch
axis 198
Skip mode 278
Slice
animate 76
create slice zone command 101
Slice source 278
Slices 278
create zones 102
global settings 199
Slicing 278
Small Rainbow color maps 89
SMALLSTEP 155
SMOOTHBNDRYCOND 149
Smoothing
data 201
SMOOTHWEIGHT 149
319
Index
SNAPTOGRID 138
SNAPTOPAPER 138
Source maps 109
Source zones 97, 98, 99
Specify
fieldmaps 67
line maps 67
Steps per cycle in animation 77
STEPSIZE 155
Stipple 278
Stop macro execution 170
Stream dashes
animation 77
Stream markers
animation 77
Streamtrace commands 202–207
add 204
delete all 205
delete range 206
reset time increments 206
set termination line 206
Streamtrace paths 77
Streamtraces
animate 77
animation
dashes or markers 77
create zones 102
delete all 205
direction 278
global settings 202
type 278
Strings
assigning 22
STROKEFONTLINETHICKNESS 123
STYLEFILE 121
Stylesheet
read 188
write to file 223
Stylesheets
macro control commands 289
Subscript 123
SUBSUPFRACTION 123
Sun Raster format options 279
Superscript 123
Surface Effects 118
Surfaces to plot 279
Symbol shape 265, 276
Symbol shapes
setting 265
Symbols
320
line plots 165
symbolshape subcommand 265
SYMBOLSIZES 85
Syntax
example macros 283
for CFD Analyzer macro commands 227
System command instructions 207
System environment variables 21
T
TECHOME
using as variable 21
Tecplot Interface 7
Tecplot interface
set attributes 148
Tecplot macro 5
tecplot.mcr 8
TEMPFILEPATH 122
Text 266
anchor 82, 279
angle 82
attach command 82
attributes 82, 105
box 82
centering 83
character height 267
color 82
copy to another frame 223
default 105
defaults 104, 105
display 170
fonts 82, 267, 276
frame 82
height 267
label box 266
label details 267
line spacing 82
prompt for 183
setting font and position 267
setting fonts 267
shape 267
spacing 123
subscript 123
superscript 123
text box 82
thickness 267
zone (attach) 82
Text box 82
Text boxes 266, 279
Text shape 83
321
Index
Textbox 82
textbox subcommand 266
textshape subcommand 267
Tick marks 268
attributes 268
axis 268
directions 279
label formatting 267
labels 267, 268
setting attributes 269
ticklabeldetail subcommand 267
TICKLENGTHS 85
Tickmark labels
alignment 276
tickmarkdetail subcommand 268
TIFF byte order 279
Time
Animation 78
Title
data set 194
Transform
coordinates 209
polar to rectangular coordinates 179
Translate
view 217
workspace view 220
Translate picked objects 178
TRANSLATION 155
Translucency 279
TRIANGLEKEEPFACTOR 149
U
Undo
view only 215
UNIXHELPBROWSERCMD 156
USEAPPROXIMATEPLOTS 156
USEDISPLAYLISTS 156
USEDOUBLEBUFFERING 156
User input dialogs 182, 183
User interface
launch dialog 160
set attributes 148
User-defined variables 21
USETECPLOTPRINTDRIVERS 156
V
Value blanking 85, 279
cell mode 279
Values
display 142
322
macro variables 17
set field value 194
Variable lists 166
Variables
3D axis 208
assign to 2D axis 179, 211
assign to 3D axes 207
assigning values 212
contours 136
environment 21
initializing 212
internal 17
location 132
macro functions 23
remove user-defined macro variable 189
renaming 189
scatter symbol sizing 142, 158
variable number 132
vector 145, 147
VECTDEFLEN 128
VECTMINLEN 128
Vector plot
attributes 145
Vector plots 279
variables 145
vector format 119
Vector variables 147
minimum/maximum as variables 19
Vectors
length reset 191
reference vector 145, 146
Vectors plot
show 117
Vertical bars (’|’s) 17
View
axis fit 213
axis nice fit 214
center 214
copy 215
data fit 215
fit 215
fit all frames 219
fit paper in workspace 219
fit selected frames 219
last 215
magnify 217
maximize 221
maximize workspace view 220
nice fit 216
paste 216
323
Index
W
While command 218
Workspace
color map dialog 89
frame 124
view 220
translate 220
unmaximize 221
view mode 279
Workspace commands 219–221
Write
color map 222
data set 222
stylesheet 223
X
X-axis gridlines 256
XORCOLOR 156
XY
raw data 285
XY Line axes attributes
assign 224
XY line plots
coordinate scale 274
curve information 274
curve type 274
error bars 276
XY mapping
function dependency 276
xy subcommand 270
XY vectors 270
XYZ
324
raw data 285
vectors 270
xyz subcommand 270
Z
Z-clip 143, 208
Zebra shading 271
attributes 271
zebrashade subcommand 271
Zone
animation 78
attach geometry 80
attributes 117
Zone boundaries
finite-element data 97
for finite element data 98
Zone Group 119
Zone numbers
specify 71
Zones 20, 81
animate 78
attributes 289
concatenate 103
create 95–103
create isozones command 98
create mirrors 99
create rectangular 100
defaults 289
delete 106, 107
duplicate 109
FE surface 98
new 101
streamtraces 102
renaming 190
specify number 71
triangulate 210
Zoom
picked objects 176
view 218
workspace view 221
325