Tecplot PDF
Tecplot PDF
Tecplot PDF
Reference Manual
Version 10 Release 4
Tecplot, Inc.
Bellevue, Washington
March, 2005
Copyright 1988-2005 Tecplot, Inc. All rights reserved worldwide. This manual may not be
reproduced, transmitted, 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 SE,
Suite 550, Bellevue, Washington, 98006, U.S.A.
This software and documentation are furnished under license for utilization and duplication only according to the license terms. 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 liability or
responsibility for documentation errors or inaccuracies.
SOFTWARE COPYRIGHTS
Tecplot 1988-2005 Tecplot, Inc. All rights reserved worldwide.
ENCSA Hierarchical Data Format (HDF) Software Library and Utilities 1988-1998 The Board of
Trustees of the University of Illinois. 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). Netpbm, Bmptopnm 1992 David W. Sanderson. Ppmtopict 1990 Ken Yap.
TRADEMARKS
Tecplot, Preplot, Framer and Amtec are registered trademarks or trademarks of Tecplot, Inc.
Encapsulated PostScript, FrameMaker, PageMaker, PostScript, PremierAdobe Systems, Incorporated.
GhostscriptAladdin Enterprises. Linotronic, Helvetica, TimesAllied Corporation. LaserWriter, Mac
OS XApple Computers, Incorporated. AutoCAD, DXFAutodesk, Incorporated. Alpha, DEC,
DigitalCompaq Computer Corporation. lan License Manager is a trademark of lan Computer
Group, Incorporated. LaserJet, HP-GL, HP-GL/2, PaintJetHewlett-Packard Company. X-Designer
Imperial Software Technology. Builder XcessoryIntegrated Computer Solutions, Incorporated. IBM,
RS6000, PC/DOSInternational Business Machines Corporation. BookmanITC Corporation. X
WindowsMassachusetts Institute of Technology. MGI VideoWaveMGI Software Corporation.
ActiveX, Excel, MS-DOS, Microsoft, Visual Basic, Visual C++, Visual J++, Visual Studio, Windows,
Windows MetafileMicrosoft Corporation. HDF, NCSANational Center for Supercomputing Applications. UNIX, OPEN LOOKNovell, Incorporated. MotifOpen Software Foundation, Incorporated.
GridgenPointwise, Incorporated. IRIS, IRIX, OpenGLSilicon Graphics, Incorporated. Open Windows, Solaris, Sun, Sun RasterSun MicroSystems, Incorporated. All other product names mentioned
herein are trademarks or registered trademarks of their respective owners.
NOTICE TO U.S. GOVERNMENT END-USERS
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 Technical 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 3633, Bellevue, WA 98009-3633.
CONTENTS
Macro Command Language 3
CHAPTER 1
Introduction
CHAPTER 2
Managing Macros
CHAPTER 3
CHAPTER 4
CHAPTER 5
Macro Commands
CHAPTER 6
Parameter Subcommands
CHAPTER 7
CHAPTER 8
Macro Variables
CHAPTER 9
Raw Data
CHAPTER 10
5
7
11
19
189
225
233
237
CHAPTER 11
299
PART I
Macro Command
Language
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 interactively 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 commands. 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
ing variables, or adding commands that, for example, 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 permutations of parameters. This manual provides an exhaustive listing of the available macro commands.
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 Tecplots 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.
Chapter 1. Introduction
CHAPTER 2
Managing Macros
Tecplot macros are stored in files. These files are processed by loading them into Tecplot and running
them.
CHAPTER 3
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 number of
the macro file. For Tecplot Version 10, this line is
#!MC 1000.
A Tecplot Version 10 macro file has the form:
#!MC 1000
<macrocommand>
<macrocommand>
.
These are optional command-specific modifiers. An example of a command that uses this is the $!FIELD command. The $!FIELD command can
be followed by a set. If it is not followed by a set, the $!FIELD command applies to all enabled zones. A supplied set in this case is used to
limit the zones to which the $!FIELD command applies.
mandatoryparameters
commandparameter commandparameter...
optionalparameters
commandparameter commandparameter...
commandparameter
parameterassignment or parametersubcommand.
parameterassignment
parametername op value.
op
= or -= or += or *= or /=.
parametersubcommand
parametername {optionalparameters}.
commandname
parametername
The name of a valid parameter for the previously named major command.
For example, the $!REDRAW major command has an optional parameter
called DOFULLDRAWING.
value
number
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 following
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
}
}
10
CHAPTER 4
This chapter presents a brief list of the major macro commands in Tecplot. All major macro commands
are preceded by $! (dollar sign, exclamation mark).
The macro commands fall into three basic categories:
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.
SetValue commands (FSV in the Type column refers to Frame SetValue commands; GSV to General SetValue) assign values to change the state of Tecplot. Some values change the state of the current frame; others are more general and are used to change the settings of the interface or hardcopy
output from Tecplot. SetValue commands are hierarchical in nature.
Command
Description
Type
$!ACTIVEFIELDZONES
FSV
$!ACTIVELINEMAPS
FSV
$!ADDMACROPANELTITLE
Action
$!ADDONCOMMAND
Action
$!ALTERDATA
Action
$!ANIMATECONTOURLEVELS
Action
$!ANIMATEIJKBLANKING
Action
$!ANIMATEIJKPLANES
Action
$!ANIMATESLICES
$!ANIMATESTREAM
Action
$!ANIMATELINEMAPS
Action
$!ANIMATEZONES
Action
$!ATTACHDATASET
Action
$!ATTACHGEOM
Action
$!ATTACHTEXT
Action
11
12
Command
Description
Type
$!AVERAGECELLCENTERDATA
Action
$!BASICCOLOR
GSV
$!BASICSIZE
GSV
$!BLANKING
FSV
$!BRANCHCONNECTIVITY
FSV
$!BRANCHFIELDDATAVAR
FSV
$!BREAK
Control
$!COLORMAP
GSV
$!COLORMAPCONTROL
Action
$!COMPATIBILITY
GSV
$!CONTINUE
Control
$!CONTOURLABELS
Action
$!CONTOURLEVELS
Action
$!CREATECIRCULARZONE
$!CREATECONTOURLINEZONES
Action
$!CREATEFEBOUNDARY
Action
$!CREATEFESURFACEFROMIORDERED
Action
$!CREATEISOZONES
Action
$!CREATELINEMAP
Create a Line-mapping.
Action
$!CREATEMIRRORZONES
Action
$!CREATENEWFRAME
Action
$!CREATERECTANGULARZONE
Action
$!CREATESIMPLEZONE
Action
$!CREATESLICEZONEFROMPLANE
Action
$!CREATESLICEZONES
Action
$!CREATESTREAMZONES
Action
$!DATASETUP
$!DEFAULTGEOM
GSV
$!DEFAULTTEXT
GSV
(2- Action
Command
Description
Type
$!DELAY
Action
$!DELETEAUXDATA
Action
$!DELETELINEMAPS
Delete Line-mappings.
Action
$!DELETEVARS
Delete variables.
Action
$!DELETEZONES
Delete zones.
Action
$!DOUBLEBUFFER
Action
$!DRAWGRAPHICS
Action
$!DROPDIALOG
Action
$!DUPLICATELINEMAP
Duplicate an Line-mapping.
Action
$!DUPLICATEZONE
Duplicate a zone.
Action
$!ELSE
Action
$!ELSEIF
Action
$!ENDIF
Control
$!ENDLOOP
Control
$!ENDMACROFUNCTION
Control
$!ENDWHILE
Control
$!EXPORT
Action
$!EXPORTCANCEL
Action
$!EXPORTFINISH
$!EXPORTNEXTFRAME
Action
$!EXPORTSETUP
GSV
$!EXPORTSTART
Action
$!EXTRACTFROMGEOM
Action
$!EXTRACTFROMPOLYLINE
Action
$!FIELD
FSV
$!FIELDLAYERS
FSV
$!FILECONFIG
$!FONTADJUST
$!FRAMECONTROL
Action
13
14
Command
Description
$!FRAMELAYOUT
Type
$!FRAMENAME
$!FRAMESETUP
$!GETAUXDATA
Action
$!GETCONNECTIVITYREFCOUNT
Action
$!GETCURFRAMENAME
Action
$!GETFIELDVALUE
Action
$!GETFIELDVALUEREFCOUNT
$!GETNODEINDEX
$!GETVARLOCATION
Action
$!GETVARNUMBYNAME
Action
$!GETZONETYPE
Action
$!GLOBALCONTOUR
FSV
$!GLOBALFRAME
GSV
$!GLOBALISOSURFACE
FSV
$!GLOBALLINEPLOT
FSV
$!GLOBALPOLAR
FSV
$!GLOBALRGB
FSV
$!GLOBALSCATTER
FSV
$!GLOBALSLICE
FSV
$!GLOBALSTREAM
FSV
$!GLOBALTHREED
FSV
$!GLOBALTHREEDVECTOR
FSV
$!GLOBALTWODVECTOR
FSV
$!IF
Control
$!INCLUDEMACRO
Control
$!INTERFACE
GSV
$!INVERSEDISTINTERPOLATE
Action
FSV
Command
Description
Type
$!KRIG
Action
$!LAUNCHDIALOG
Action
$!LIMITS
GSV
$!LINEARINTERPOLATE
Action
$!LINEMAP
FSV
$!LINEPLOTLAYERS
FSV
$!LINKING
FSV
$!LOADADDON
Load an add-on.
Action
$!LOADCOLORMAP
Action
$!LOOP
Control
$!MACROFUNCTION
Control
$!NEWLAYOUT
Action
$!OPENLAYOUT
Action
$!PAPER
GSV
$!PAUSE
Action
$!PICK
Action
$!PLOTTYPE
FSV
$!POLARAXIS
FSV
$!POLARTORECTANGULAR
Action
$!POLARVIEW
GSV
Action
$!PRINTSETUP
GSV
$!PROMPTFORFILENAME
Action
$!PROMPTFORTEXTSTRING
Action
$!PROMPTFORYESNO
Action
$!PROPAGATELINKING
FSV
$!PUBLISH
15
16
Command
Description
Type
$!QUIT
Quit Tecplot.
Action
$!RAWCOLORMAP
Action
$!READDATASET
$!READSTYLESHEET
Action
$!REDRAW
Action
$!REDRAWALL
Action
$!REMOVEVAR
Control
$!RENAMEDATASETVAR
Action
$!RENAMEDATASETZONE
Action
$!RESET3DAXES
Action
$!RESET3DORIGIN
Action
$!RESET3DSCALEFACTORS
Action
$!RESETVECTORLENGTH
Action
$!ROTATE2DDATA
Action
$!ROTATE3DVIEW
Action
$!RUNMACROFUNCTION
Control
$!SAVELAYOUT
Action
$!SET3DEYEDISTANCE
FSV
$!SETAUXDATA
GSV
$!SETDATASETTITLE
Action
$!SETFIELDVALUE
$!SETSTYLEBASE
Action
$!SHARECONNECTIVITY
GSV
$!SHAREFIELDDATAVAR
GSV
$!SHIFTLINEMAPSTOBOTTOM
Action
$!SHIFTLINEMAPSTOTOP
$!SHOWMOUSEPOINTER
Action
$!SKETCHAXIS
FSV
$!SMOOTH
Smooth data.
Action
Command
Description
Type
$!STREAMTRACE
Action
$!SYSTEM
Action
$!THREEDAXIS
FSV
$!THREEDVIEW
FSV
$!TRANSFORMCOORDINATES
FSV
$!TRIANGULATE
Action
$!TWODAXIS
FSV
$!VARSET
Control
$!VIEW
Action
$!WHILE
Control
$!WORKSPACEVIEW
Action
$!WRITECOLORMAP
Action
$!WRITECURVEINFO
$!WRITEDATASET
Action
$!WRITESTYLESHEET
Action
$!XYLINEAXIS
FSV
17
18
CHAPTER 5
Macro Commands
This chapter lists Tecplots macro commands alphabetically. Items within double angle brackets (<<
>>) represent parameter sub-commands that are listed and described in Chapter 6.
$!ACTIVEFIELDZONES
Syntax:
[no parameters]
Description:
A SetValue command that changes the set of zones considered for plotting.
Examples:
Example 1: Make only zones 1, 3, 4 and 5 active for plotting:
$!ACTIVEFIELDZONES = [1,3-5]
Example 2: Add zones 33, 34, 35 and 36 to the set of active zones:
$!ACTIVEFIELDZONES + = [33-36]
$!ACTIVELINEMAPS
Syntax:
[no parameters]
19
Description:
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]
$!ADDMACROPANELTITLE
Syntax:
$!ADDMACROPANELTITLE <string>
[no parameters]
Description:
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:
20
Required Parameters:
Parameter Syntax
Notes
ADDONID = <string>
COMMAND = <string>
Optional Parameters:
Parameter Syntax
Default
Notes
<addoncommandrawdata>
NULL
Example: 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 <set>
EQUATION = <string>
[optional parameters]
Description:
Required Parameter:
Parameter Syntax
Notes
EQUATION = <string>
21
Optional Parameters:
Parameter Syntax
IRANGE
{
MIN = <integer>
MAX = <integer>
SKIP = <integer>
}
JRANGE
{
MIN = <integer>
MAX = <integer>
SKIP = <integer>
}
KRANGE
{
MIN = <integer>
MAX = <integer>
SKIP = <integer>
}
Default
Notes
See the note, Range Parameters, for information on
specifying range index values.
1
0
1
See the note, Range Parameters, for information on
specifying range index values.
1
0
1
See the note, Range Parameters, for information on
specifying range index values.
1
0
1
DATATYPE = <datatype>
SINGLE
VALUELOCATION =
<valuelocation>
AUTO
Range The IRANGE, JRANGE, and KRANGE parameters are used to limit the data altered by the equation. The
Parameters specification of range indices follow these rules:
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
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)"
22
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}
$!ALTERDATA
EQUATION = "{P} = 0"
JRANGE {MIN = 0}
$!ANIMATECONTOURLEVELS
Syntax:
$!ANIMATECONTOURLEVELS
<integer>
<integer>
[optional parameters]
START =
END
Description:
Required Parameters:
Parameter Syntax
Notes
START = <integer>
END
= <integer>
23
Optional Parameters:
Parameter Syntax
SKIP
= <integer>
CREATEMOVIEFILE = <boolean>
Example:
Default
Notes
Level skip.
FALSE
The following command animates the first four contour levels to an AVI file:
$!EXPORTSETUP EXPORTFORMAT = AVI
$!EXPORTSETUP EXPORTFNAME = "contourlevels.avi"
$!ANIMATECONTOURLEVELS
START = 1
END
= 4
CREATEMOVIEFILE = TRUE
$!ANIMATEIJKBLANKING
Syntax:
Description:
$!ANIMATEIJKBLANKING
NUMSTEPS = <integer>
[optional parameters]
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:
Parameter Syntax
Notes
NUMSTEPS = <integer>
Optional Parameters:
24
Parameter Syntax
Default
Notes
IMINFRACT = <dexp>
0.1
JMINFRACT = <dexp>
0.1
Parameter Syntax
Default
Notes
KMINFRACT = <dexp>
0.1
IMAXFRACT = <dexp>
1.0
JMAXFRACT = <dexp>
1.0
KMAXFRACT = <dexp>
1.0
IMINFRACT2 = <dexp>
0.8
JMINFRACT2 = <dexp>
0.8
KMINFRACT2 = <dexp>
0.8
IMAXFRACT2 = <dexp>
1.0
JMAXFRACT2 = <dexp>
1.0
KMAXFRACT2 = <dexp>
1.0
CREATEMOVIEFILE = <boolean>
FALSE
Example:
25
KMINFRACT2
IMAXFRACT2
JMAXFRACT2
KMAXFRACT2
=
=
=
=
0.0
1.0
1.0
1.0
$!ANIMATEIJKPLANES
Syntax:
$!ANIMATEIJKPLANES
START = <integer>
END
= <integer>
[optional parameters]
Description:
Required Parameters:
Parameter Syntax
Notes
START = <integer>
END = <integer>
Optional Parameters:
Parameter Syntax
Default
Notes
PLANES = <ijkplane>
Specify I, J or K.
SKIP = <integer>
Index skip.
CREATEMOVIEFILE = <boolean>
FALSE
Example:
26
$!ANIMATELINEMAPS
Syntax:
$!ANIMATELINEMAPS
<integer>
<integer>
[optional parameters]
START =
END =
Description:
Required Parameters:
Parameter Syntax
Notes
START = <integer>
END = <integer>
Optional Parameters:
Parameter Syntax
SKIP
= <integer>
CREATEMOVIEFILE = <boolean>
Example:
Default
Notes
Line-map skip.
FALSE
$!ANIMATESLICES
Syntax:
$!ANIMATESLICES
<integer>
<integer>
[optional parameters]
START =
END =
27
Description:
The macro command $!ANIMATESLICES uses the currently defined start and end
slice position. Use $!GLOBALSLICE to set these positions; $!ANIMATESLICES
then redefines how many intermediate slices are to be used, then animates a subset of those slices. To create an AVI or RM file, add $!EXPORTSETUP commands
before this command.
Required Parameters:
Parameter Syntax
Default
Notes
START = <integer>
END = <integer>
NUMSLICES = <integer>
Optional Parameters:
Parameter Syntax
Default
Notes
CREATEMOVIEFILE =
<boolean>
FALSE
Example:
$!ANIMATESTREAM
Syntax:
28
$!ANIMATESTREAM
[optional parameters]
Description:
Optional Parameters:
Parameter Syntax
Default
Notes
STEPSPERCYCLE = <integer>
10
NUMCYCLES = <integer>
CREATEMOVIEFILE =
<boolean>
FALSE
Example:
The following example animates streamtraces for five cycles with each cycle
using ten steps:
$!ANIMATESTREAM
STEPSPERCYCLE = 10
NUMCYCLES
= 5
$!ANIMATEZONES
Syntax:
$!ANIMATEZONES
START = <integer>
END = <integer>
[optional parameters]
Description:
Required Parameters:
Parameter Syntax
Notes
START = <integer>
END = <integer>
29
Optional Parameters:
Parameter Syntax
SKIP
= <integer>
CREATEMOVIEFILE = <boolean>
Example:
Default
Notes
Zone skip.
FALSE
$!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:
Parameter Syntax Default
FRAME = <integer>
numframes-1
Notes
Frames are numbered 1 to numframes, based on the order they
are drawn when a Redraw All is executed.
Examples:
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:
$!ATTACHDATASET
30
$!ATTACHGEOM
Syntax:
$!ATTACHGEOM
[optional parameters]
<geometryrawdata>
Description:
Required Parameter:
Parameter Syntax
Notes
<geometryrawdata>
This is the data which defines the size and relative shape
of the geometry. This must be at the end of the command
after any other parameters.
Optional Parameters:
Parameter Syntax
Default
Notes
ATTACHTOZONE = <boolean>
FALSE
COLOR = <color>
BLACK
CLIPPING = <clipping>
CLIPTTOVIE
WPORT
FILLCOLOR = <color>
WHITE
ISFILLED = <boolean>
GEOMTYPE = <geomtype>
LINESEGS
LINEPATTERN = <linepattern>
SOLID
PATTERNLENGTH = <dexp>
2%
LINETHICKNESS = <dexp>
0.1%
NUMELLIPSEPTS = <integer>
72
ARROWHEADSTYLE =
<arrowheadstyle>
PLAIN
ARROWHEADATTACHMENT =
<arrowheadattachment>
NONE
31
Parameter Syntax
Default
Notes
ARROWHEADSIZE = <dexp>
5%
ARROWHEADANGLE = <dexp>
12
SCOPE = <scope>
LOCAL
MACROFUNCTIONCOMMAND =
<string>
Null
DRAWORDER= <draworder>
AFTERDATA
IMAGEFILENAME= <string>
MAINTAINASPECTRATIO=
<boolean>
TRUE
RESIZEFILTER= <resizefilter>
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
}
32
GEOMTYPE = LINESEGS
ARROWHEADATTACHMENT = ATEND
RAWDATA
1
3
0 0
0 -60
40 0
$!ATTACHTEXT
Syntax:
$!ATTACHTEXT
TEXT = <string>
[optional parameters]
Description:
Required Parameter:
Parameter Syntax
Notes
TEXT = <string>
Optional Parameters:
Parameter Syntax
Default
ANCHORPOS <<anchorpos>>
Notes
This assigns the anchor position for the text. Units
are dependent on POSITIONCOORDSYS.
CLIPTOVIEW
PORT
ZONE = <integer>
ATTACHTOZONE = <boolean>
FALSE
COLOR = <color>
BLACK
TEXTSHAPE
{
FONT = <font>
SIZEUNITS = <sizeunits>
HEIGHT = <dexp>
}
HELVBOLD
POINT
14
33
Parameter Syntax
BOX
{
BOXTYPE = <boxtype>
LINETHICKNESS = <dexp>
MARGIN = <dexp>
COLOR = <color>
FILLCOLOR = <color>
}
Default
NONE
0.1%
20
BLACK
WHITE
Notes
The margin is the space between the text and box.
The margin is measured in terms of the percentage
of the text height.
ANGLE = <dexp>
0.0
ANCHOR = <textanchor>
LEFT
LINESPACING = <dexp>
1.0
SCOPE = <scope>
LOCAL
MACROFUNCTIONCOMMAND =
<string>
NULL
Examples:
Example 1: The following example creates the text ABC and positions it in the lower left
corner of the frame:
$!ATTACHTEXT
TEXT = "ABC"
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}
34
$!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:
Parameter Syntax
Notes
BLACK
<<rgb>>
RED
<<rgb>>
GREEN
<<rgb>>
BLUE
<<rgb>>
CYAN
<<rgb>>
YELLOW
<<rgb>>
PURPLE
<<rgb>>
WHITE
<<rgb>>
CUSTOM1...CUSTOM56
<<rgb>>
Example:
$!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
35
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:
Parameter Syntax
Notes
LINETHICKNESSES
<<basicsizelist>>
TICKLENGTHS
<<basicsizelist>>
SYMBOLSIZES
<<basicsizelist>>
LINEPATLENGTHS
<<basicsizelist>>
ARROWHEADSIZES
<<basicsizelist>>
POINTTEXTSIZES
<<basicsizelist>>
FRAMETEXTSIZES
<<basicsizelist>>
Example:
$!BLANKING
Syntax:
$!BLANKING
[optional parameters]
Description:
36
Optional Parameters:
Parameter Syntax
IJK
{
INCLUDE
IJKBLANKMODE
IMINFRACT
JMINFRACT
KMINFRACT
IMAXFRACT
JMAXFRACT
KMAXFRACT
ZONE
}
VALUE
{
VALUEBLANKCELLMODE
BLANKENTIRECELL
INCLUDE
CONSTRAINT nnn
{
INCLUDE
RELOP
CONSTRAINTOP2MODE
VALUECUTOFF
VARA
VARB
SHOW
COLOR
LINEPATTERN
PATTERNLENGTH
LINETHICKNESS
}
}
DEPTH
{
INCLUDE
FROMFRONT
FROMBACK
}
Notes
<op> <boolean>
= <ijkblankmode>
<op> <dexp>
<op> <dexp>
<op> <dexp>
<op> <dexp>
<op> <dexp>
<op> <dexp>
= <integer>
= <valueblankcellmode>
= <boolean>
Set to FALSE to get precision-blanking.
= <boolean>
Set to FALSE to turn off all value-blanking.
<integer>
Use <integer> to specify which constraint to
modify.
= <boolean>
= <valueblankrelop>
= <constraintop2mode>
= <double>
= <integer>
= <integer>
= <boolean>
= <color>
= <linepattern>
= <double>
= <double>
= <boolean>
= <double>
= <double>
Examples:
Example 1: Set IJK-blanking to cut away the minimum index corner:
$!BLANKING
IJK
{
INCLUDE
= YES
IMINFRACT = 0
JMINFRACT = 0
37
KMINFRACT
IMAXFRACT
JMAXFRACT
KMAXFRACT
=
=
=
=
0
50
50
50
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
{
INCLUDE = YES
VARA = 3
RELOP = LESSTHANOREQUAL
VALUECUTOFF = 7.5
}
}
$!BRANCHCONNECTIVITY
Syntax:
$!BRANCHCONNECTIVITY
ZONE
= <integer>
Required Parameters:
Parameter Syntax
ZONE
Example:
Notes
= <integer>
38
$!BRANCHFIELDDATAVAR
Syntax:
$!BRANCHFIELDDATAVAR
ZONE = <integer>
VAR
= <integer>
Allows for branching of specified variable in the specified zone for zones that
share variables.
Required Parameters:
Parameter Syntax
Notes
ZONE
= <integer>
VAR
= <integer>
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:
Example:
$!LOOP 5
.
.
.
$!BREAK
.
.
.
$!ENDLOOP
39
$!COLORMAP
Syntax:
$!COLORMAP
[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.
Optional Parameters:
Parameter Syntax
Notes
TWOCOLOR
<<colormapcontrolpoints>>
SMRAINBOW
<<colormapcontrolpoint>>
LGRAINBOW
<<colormapcontrolpoint>>
MODERN
<<colormapcontrolpoints>>
GRAYSCALE
<<colormapcontrolpoints>>
USERDEFINED
<<colormapcontrolpoints>>
Example:
<colormap>
Make the third control point for the small rainbow color map to be positioned 0.44
of the way across the color map. Set the leading and trailing RGB red value to 90:
$!COLORMAP
SMRAINBOW
{
CONTROLPOINT 3
{
COLORMAPFRACTION = 0.44
LEADRGB
{R = 90}
TRAILRGB
{R = 90}
}
}
40
$!COLORMAPCONTROL REDISTRIBUTECONTROLPOINTS
Syntax:
$!COLORMAPCONTROL REDISTRIBUTECONTROLPOINTS
[no parameters]
Description:
Redistribute the control points for the currently active color map so they are
evenly 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.
Example:
$!COLORMAPCONTROL REDISTRIBUTECONTROLPOINTS
$!COLORMAPCONTROL COPYSTANDARD
Syntax:
$!COLORMAPCONTROL COPYSTANDARD
CONTOURCOLORMAP = <standardcolormap>
Description:
Preset either the user-defined color map or the raw user-defined color map to be a
copy of one of the standard color maps. Tecplot must currently be using either the
user-defined color map or the raw user-defined color map in order to use this
function.
Required Parameter:
Parameter Syntax
Notes
CONTOURCOLORMAP = <standardcolormap>
Example:
The following example sets the current color map to be a copy of the small
41
$!COLORMAPCONTROL RESETTOFACTORY
Syntax:
$!COLORMAPCONTROL RESETTOFACTORY
[no parameters]
Description:
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.
Example:
$!COLORMAPCONTROL RESETTOFACTORY
$!COMPATIBILITY
Syntax:
$!COMPATIBILITY
[optional parameters]
Description:
Optional Parameters:
Parameter Syntax
Default
Notes
ALLOWDATASHARING = <boolean>
TRUE
USEV10TEXTFORMATTING = <boolean>
TRUE
Example:
42
$!CONTINUE
Syntax:
$!CONTINUE
Description:
Example:
$!LOOP 10
.
.
.
$!CONTINUE
.
.
.
$!ENDLOOP
$!CONTOURLABELS ADD
Syntax:
$!CONTOURLABELS ADD
[optional parameters]
Description:
Optional Parameters:
Parameter Syntax Default
Notes
XYZPOS
{
X = <dexp>
Y = <dexp>
Z = <dexp>
}
0.0
0.0
0.0
43
Notes
ISALIGNED =
<boolean>
TRUE
If TRUE then align the contour label along the contour line;
if FALSE, draw the label horizontally.
CONTOURGROUP =
<integer>
Example:
The following commands add labels at (0.5, 0.25) and (0.73, 0.17) in a 2-D field
plot. The labels will be aligned:
$!CONTOURLABELS ADD
CONTOURGROUP = 2
XYZPOS
{
X = 0.5
Y = 0.25
}
$!CONTOURLABELS ADD
XYZPOS
{
X = 0.73
Y = 0.17
}
$!CONTOURLABELS DELETEALL
Syntax:
$!CONTOURLABELS DELETEALL
[optional parameters]
Description:
Optional Parameters:
Parameter Syntax Default
Notes
CONTOURGROUP =
<integer>
Example:
$!CONTOURLABELS DELETEALL
CONTOURGROUP = 3
44
ADD
NEW
DELETENEAREST
DELETERANGE
RESET
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:
Parameter Syntax
Notes
<contourlevelrawdata>
Optional Parameters:
Parameter Syntax Default
Notes
CONTOURGROUP =
<integer>
Example:
45
$!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:
Parameter Syntax
Notes
RANGEMIN = <dexp>
Optional Parameters:
Parameter Syntax Default
Notes
CONTOURGROUP =
<integer>
Example:
$!CONTOURLEVELS DELETERANGE
Syntax:
$!CONTOURLEVELS DELETERANGE
RANGEMIN = <dexp>
RANGEMAX = <dexp>
[optional parameters]
Description:
46
Delete all contour levels between a minimum and maximum contour value
(inclusive).
Required Parameters:
Parameter Syntax
Notes
RANGEMIN = <dexp>
RANGEMAX = <dexp>
Optional Parameters:
Parameter Syntax Default
Notes
CONTOURGROUP =
<integer>
Example:
$!CONTOURLEVELS NEW
Syntax:
$!CONTOURLEVELS NEW
<contourlevelrawdata>
[optional parameters]
Description:
Required Parameter:
Parameter Syntax
Notes
<contourlevelrawdata>
Optional Parameters:
Parameter Syntax Default
Notes
CONTOURGROUP =
<integer>
Example:
Replace the current set of contour levels with the levels 0.5, 0.75 and 1.0:
$!CONTOURLEVELS NEW
47
RAWDATA
3
0.5
0.75
1.0
$!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:
Parameter Syntax
Notes
NUMVALUES = <integer>
Optional Parameters:
Parameter Syntax Default
CONTOURGROUP =
<integer>
Example:
Notes
Defines which contour group is changed.
$!CONTOURLEVELS RESETTONICE
Syntax:
$!CONTOURLEVELS RESETTONICE
APPROXNUMVALUES = <integer>
[optional parameters]
48
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:
Parameter Syntax
Notes
APPROXNUMVALUES = <integer>
Optional Parameters:
Parameter Syntax Default
CONTOURGROUP =
<integer>
Example:
Notes
Defines which contour group is changed.
$!CREATECIRCULARZONE
Syntax:
$!CREATECIRCULARZONE
IMAX = <integer>
JMAX = <integer>
[optional parameters]
Description:
Required Parameters:
Parameter Syntax
Notes
IMax = <integer>
Radial direction.
JMax = <integer>
49
Optional Parameters:
Parameter Syntax
Default
Notes
KMax = <integer>
X = <dexp>
Y = <dexp>
Z1 = <dexp>
Z2 = <dexp>
XVAR = <integer>
Auto
YVAR = <integer>
Auto
ZVAR = <integer>
Auto
RADIUS = <dexp>
DATATYPE = <datatype>
SINGLE
Examples:
Example 1: Create a circular 10 by 20 IJ-ordered zone centered at (5, 5) with a radius of 2:
$!CREATECIRCULARZONE
IMax
= 10
JMax
= 20
X
= 5
Y
= 5
RADIUS
= 2
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
50
$!CREATECONTOURLINEZONES
Syntax:
$!CREATECONTOURLINEZONES
[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:
Parameter Syntax
Notes
CONTLINECREATEMODE
= [ONEZONEPERCONTOURLEVEL or
ONEZONEPERINDEPENDENTPOLYLINE
Example:
$!CREATEFEBOUNDARY
Syntax:
$!CREATEFEBOUNDARY
SOURCEZONE = <integer>
[optional parameters]
Description:
Zone boundaries for finite element data cannot be turned on or off using the
boundary 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.
One requirement for this function to work correctly is that adjacent cells must
share the same node points along their common boundary.
Required Parameter:
Parameter Syntax
Notes
SOURCEZONE = <integer>
51
Optional Parameter:
Parameter Syntax
Default
Notes
REMOVEBLANKEDSURFACES =
<boolean>
FALSE
Example:
$!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 recomended 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:
Parameter Syntax
Notes
SOURCEZONES = <set>
Optional Parameter:
Parameter Syntax
Default
Notes
CONNECTSTARTTOEND =
<boolean>
FALSE
Example:
52
$!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:
Example:
$!CREATELINEMAP
$!CREATEMIRRORZONES
Syntax:
$!CREATEMIRRORZONES
SOURCEZONES = <set>
[optional parameters]
Description:
Create new zones that are mirror images of the source zones
Required Parameter:
Parameter Syntax
Notes
SOURCEZONES = <set>
Optional Parameter:
Parameter Syntax
Default
Notes
MIRRORVAR = <mirrorvar>
53
Example:
Create a mirror of zones 2-4 across the Y-axis (that is, mirror the X-variable) in
2D frame mode:
$!CREATEMIRRORZONES
SOURCEZONES = [2-4]
MIRRORVAR
= X
$!CREATENEWFRAME
Syntax:
$!CREATENEWFRAME
[optional parameters]
Description:
Optional Parameters:
Parameter Syntax Default
Notes
XYPOS
{
X = <dexp>
Y = <dexp>
}
1.0
0.25
WIDTH = <dexp>
HEIGHT = <dexp>
Note: 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 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
54
$!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:
Parameter Syntax
Default
Notes
IMax = <integer>
I-dimension.
JMax = <integer>
J-dimension.
KMax = <integer>
K-dimension.
X1 = <dexp>
X-minimum.
Y1 = <dexp>
Y-minimum.
Z1 = <dexp>
Z-minimum.
X2 = <dexp>
X-maximum.
Y2 = <dexp>
Y-maximum.
Z2 = <dexp>
Z-maximum.
XVAR = <integer>
Auto
YVAR = <integer>
Auto
ZVAR = <integer>
Auto
DATATYPE = <datatype>
SINGLE
Example:
55
$!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:
Parameter Syntax
Notes
<xyrawdata>
Optional Parameter:
Parameter Syntax
Default
DATATYPE = <datatype>
SINGLE
Example:
Notes
Create a simple XY-zone that has the XY-pairs (1, 0), (2, 1), (3, 7) and (5 9):
$!CREATESIMPLEZONE
RAWDATA
4
1 0
2 1
3 7
5 9
$!CREATESLICEZONEFROMPLANE
56
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.
Optional Parameters:
Parameter Syntax
Default
SLICESOURCE= <slicesource>
VOLUMEZONES
FORCEEXTRACTIONTOSINGLEZON
E = <boolean>
TRUE
Example:
Notes
$!CREATESLICEZONES
Syntax:
$!CREATESLICEZONES
[no parameters]
Description:
Example:
Create a new zone for each slice defined on the Slice Details dialog. Only creates
slices from volume zones.
$!GLOBALSLICE POSITION1 {X = 6}
$!GLOBALCONTOUR VAR = 4
$!GLOBALSLICE SHOW = YES
$!GLOBALSLICE POSITION2 {X = 1}
$!GLOBALSLICE SHOWPOSITION2 = YES
$!GLOBALSLICE SHOWINTERMEDIATESLICES = YES
$!GLOBALSLICE NUMINTERMEDIATESLICES = 6
$!REDRAW
$!CREATESLICEZONES
57
$!CREATESTREAMZONES
Syntax:
$!CREATESTREAMZONES
[optional parameters]
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:
Parameter Syntax
Default
Notes
CONCATENATE = <boolean>
FALSE
Example:
$!DATASETUP
Syntax:
$!DATASETUP
[optional parameters]
Description:
Optional Parameters:
Parameter Syntax
58
Notes
SCRATCHDATAFIELDTYPE
= <datatype>
Set the data type for scratch arrays used for geometries
line segments and other lines. The default is SINGLE for
Windows and DOUBLE for UNIX. This parameter can
only be used in the Tecplot configuration file.
PREPLOTARGS
= <string>
Example:
Change the arguments used to Preplot ASCII files so only zones 1, 2 and 3 are
processed:
$!DATASETUP
PREPLOTARGS = "-zonelist 1:3"
$!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:
Parameter Syntax
Notes
ANCHORPOS
<<xyz>>
POSITIONCOORDSYS
= <coordsys>
SCOPE
= <scope>
ZONE
= <integer>
ATTACHTOZONE
= <boolean>
COLOR
= <color>
FILLCOLOR
= <color>
ISFILLED
= <boolean>
LINEPATTERN
= <linepattern>
PATTERNLENGTH
<op> <dexp>
LINETHICKNESS
<op> <dexp>
NUMELLIPSEPTS
<op> <integer>
ARROWHEADSTYLE
= <arrowheadstyle>
ARROWHEADATTACHMENT = <arrowheadattachment>
ARROWHEADSIZE
<op> <dexp>
59
Parameter Syntax
Notes
ARROWHEADANGLE
<op> <dexp>
MACROFUNCTIONCOMMAND
= <string>
Example:
$!DEFAULTTEXT
Syntax:
$!DEFAULTTEXT
[optional parameters]
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:
Parameter Syntax
60
Notes
ANCHORPOS
<<xy>>
POSITIONCOORDSYS
= <coordsys>
SCOPE
= <scope>
ZONE
<op> <integer>
ATTACHTOZONE
= <boolean>
CLIPPING
= <clipping>
COLOR
= <color>
ANGLE
<op> <dexp>
ANCHOR
= <textanchor>
LINESPACING
<op> <dexp>
TEXTSHAPE
<<textshape>>
BOX
<<textbox>>
MACROFUNCTIONCOMMAND
= <string>
Example:
Make the default text font TIMESBOLD with a character height of 14 points:
$!DEFAULTTEXT
TEXTSHAPE
{
FONT = TIMESBOLD
SIZEUNITS = POINT
HEIGHT = 14
}
$!DELAY
Syntax:
$!DELAY <integer>
[no parameters]
Description:
Example:
$!DELETEAUXDATA
Syntax:
$!DELETEAUXDATA
AUXDATALOCATION
= [zone/dataset/frame]
[optional parameters]
Description:
Delete Auxilary Data in the form of name/value pairs from zones, frames or
datasets.
Required Parameters:
Parameter Syntax
AUXDATALOCATION
Notes
= <zone/dataset/frame> Options are ZONE, DATASET or FRAME
61
Optional Parameters:
Parameter Syntax
Notes
ZONE
= <integer>
NAME
= <string>
Example:
$!DELETELINEMAPS
Syntax:
$!DELETEMAPS <set>
[no parameters]
Description:
Example:
$!DELETEVARS
Syntax:
$!DELETEVARS <set>
[no parameters]
Description:
Example:
62
$!DELETEZONES
Syntax:
$!DELETEZONES <set>
[no parameters]
Description:
Example:
$!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:
$!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
63
Example:
$!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:
$!DROPDIALOG
Syntax:
$!DROPDIALOG <dialogname>
[no parameters]
64
$!DROPDIALOG MACROVIEWER
$!DUPLICATELINEMAP
Syntax:
$!DUPLICATELINEMAP
SOURCEMAP = <integer>
DESTINATIONMAP = <integer>
Description:
Required Parameters:
Parameter Syntax
Notes
SOURCEMAP = <integer>
DESTINATIONMAP = <integer>
65
Example:
$!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:
Parameters Syntax
Notes
SOURCEZONE = <integer>
Optional Parameters:
Parameters Syntax
IRANGE
{
MIN = <integer>
MAX = <integer>
SKIP = <integer>
}
JRANGE
{
MIN = <integer>
MAX = <integer>
SKIP = <integer>
}
KRANGE
{
MIN = <integer>
MAX = <integer>
SKIP = <integer>
}
Default
Notes
See notes on index ranges for $!ALTERDATA action
command.
1
0
1
See notes on index ranges for $!ALTERDATA action
command.
1
0
1
See notes on index ranges for $!ALTERDATA action
command.
1
0
1
Examples:
Example 1: Make a complete copy of zone 2:
66
$!DUPLICATEZONE
SOURCEZONE = 2
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:
Example:
$!VARSET |C| = 2
$!IF |C| == 5
$!CREATENEWFRAME
XYPOS
{
X = 2.5
Y = 1.5
}
WIDTH = 4
HEIGHT = 4
$!ELSE
$!CREATENEWFRAME
XYPOS
{
X = 3
Y = 2
}
WIDTH = 3
HEIGHT = 3
$!ENDIF
67
$!ELSEIF
Syntax:
$!ELSEIF <conditionalexp>
Description:
Example:
$!VARSET |A| = 2
$!IF |A| < 5
$!CREATENEWFRAME
XYPOS
{
X = 1
Y = 1
}
WIDTH
HEIGHT
$!ELSEIF |A| > 5
$!CREATENEWFRAME
XYPOS
{
X = 2
Y = 1
}
WIDTH
HEIGHT
$!ELSE
$!CREATENEWFRAME
XYPOS
{
X = 3
Y = 3
}
WIDTH
HEIGHT
$!ENDIF
= 3
= 3
= 5
= 5
= 9
= 9
$!EXPORT
Syntax:
$!EXPORT
[no parameters]
Description:
68
Export an image file from Tecplot. See the $!EXPORTSETUP command for
details on setting up the exported image type. The $!EXPORT command is not
Example:
$!EXPORTCANCEL
Syntax:
$!EXPORTCANCEL
[no parameters]
Description:
Cancel out of the current export animation sequence. The animation file being
generated is removed.
Example:
$!EXPORTCANCEL
$!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
69
$!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
$!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:
Parameter Syntax
70
Notes
EXPORTFNAME
= <string>
EXPORTFORMAT
= <exportformat>
GRAYSCALEDEPTH
= <integer>
IMAGEWIDTH
<op> <integer>
SUNRASTERFORMAT
= <sunrasterformat>
Parameter Syntax
Notes
= <bitdumpregion>
BITDUMPREGION
EPSPREVIEWIMAGE
{
IMAGETYPE
IMAGEWIDTH
IMAGEHEIGHT
GRAYSCALEDEPTH
}
=
=
=
=
<epspreviewimagetype>
<integer>
<integer>
<integer>
Valid values are 0, 1, 4, 8.
CONVERTTO256COLORS
= <boolean>
ANIMATIONSPEED
= <double>
USEMULTIPLECOLORTABLES
= <boolean>
TIFFBYTEORDER
= <tiffbyteorder>
QUALITY
= <integer>
JPEGENCODING
= STANDARD or
PROGRESSIVE
USESUPERSAMPLEANTIALIAS = <boolean>
ING
Default = FALSE
SUPERSAMPLEFACTOR
= <integer>
PRINTRENDERTYPE
= <printrendertype>
Default = PRINTRENDERTYPE_VECTOR
RESIZEFILTER
= <resizefilter>
Example:
$!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
71
Metafile.)
Example:
$!EXPORTSETUP
EXPORTFNAME="rotate.avi"
EXPORTFORMAT=AVI
$!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
Parameters Syntax
Default
Notes
EXTRACTLINEPOINTSONLY =
<boolean>
FALSE
INCLUDEDISTANCEVAR = <boolean>
FALSE
NUMPTS = <integer>
---
Required if EXTRACTLINEPOINTSONLY is
FALSE.
EXTRACTTOFILE = <boolean>
FALSE
FNAME = <string>
---
Example:
Extract 20 points from along the currently picked geometry. Send the result to a
file called extract.dat:
$!EXTRACTFROMGEOM
NUMPTS
72
= 20
EXTRACTTOFILE
FNAME
= TRUE
= "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
Parameters Syntax
Default
Notes
EXTRACTTHROUGHVOLUME =
<boolean>
FALSE
EXTRACTLINEPOINTSONLY =
<boolean>
FALSE
NUMPTS = <integer>
---
Required if EXTRACTLINEPOINTSONLY is
FALSE.
EXTRACTTOFILE = <boolean>
FALSE
FNAME = <string>
---
Example:
Extract 10 points from specific locations in a field plot. Create a zone with the
extracted data:
$!EXTRACTFROMPOLYLINE
EXTRACTLINEPOINTSONLY = TRUE
RAWDATA
10
0 0 0
1 2 0
2 4 0
3 2 0
3 4 0
4 4 0
73
4
4
5
6
5
6
7
9
0
0
0
0
$!FIELD
Syntax:
$!FIELD [<set>]
[optional parameters]
Description:
A SetValue command that assigns zone attributes for field plots. The <set>
parameter immediately following the $!FIELD 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:
Parameter Syntax
MESH
{
SHOW
MESHTYPE
COLOR
LINEPATTERN
PATTERNLENGTH
LINETHICKNESS
}
CONTOUR
{
SHOW
CONTOURTYPE
COLOR
LINEPATTERN
PATTERNLENGTH
LINETHICKNESS
USELIGHTINGEFFECT
FLOODCOLORING
LINECONTOURGROUP
}
74
Notes
= <boolean>
= <meshplottype>
= <color>
= <linepattern>
<op> <dexp>
<op> <dexp>
= <boolean>
= <meshplottype>
= <color>
= <linepattern>
<op> <dexp>
<op> <dexp>
= <boolean>
= <contourcoloring_e>
= <sminteger_t>
Parameter Syntax
VECTOR
{
SHOW
VECTORTYPE
ARROWHEADSTYLE
COLOR
ISTANGENT
LINEPATTERN
PATTERNLENGTH
LINETHICKNESS
}
SCATTER
{
SHOW
COLOR
FILLMODE
FILLCOLOR
SIZEBYVARIABLE
FRAMESIZE
LINETHICKNESS
SYMBOLSHAPE
}
POINTS
{
IJKSKIP
POINTSTOPLOT
}
SHADE
{
SHOW
COLOR
USELIGHTINGEFFECT
}
BOUNDARY
{
SHOW
IBOUNDARY
JBOUNDARY
KBOUNDARY
COLOR
LINETHICKNESS
}
SURFACEEFFECTS
{
SURFACETRANSLUCENCY
USETRANSLUCENCY
LIGHTINGEFFECT
}
Notes
=
=
=
=
=
=
=
=
<boolean>
<vectorplottype>
<arrowheadstyle>
<color>
<boolean>
<linepattern>
<dexp>
<dexp>
=
=
=
=
=
<boolean>
<color>
<fillmode>
<color>
<boolean>
<op> <dexp>
<op> <dexp>
<<symbolshape>>
<<ijk>>
<pointstoplot>
= <boolean>
= <color>
= <boolean>
= <boolean>
= <boundarysetting>
= <boundarysetting>
= <boundarysetting>
= <color>
= <dexp>
= <translucency>
= <boolean>
= <lightingeffect>
75
Parameter Syntax
Notes
SURFACES
{
SURFACESTOPLOT
IRANGE
JRANGE
KRANGE
}
= <surfacestoplot>
<<indexrange>>
<<indexrange>>
<<indexrange>>
VOLUMEMODE
{
VOLUMEOBJECTSTOPLOT
}
GROUP
<<volumeobjectstoplot>>
= <integer>
Examples:
Example 1: Change the contour plot type to flood for zones 1-12:
$!FIELD [1-12]
CONTOUR
{
CONTOURTYPE = FLOOD
}
$!FIELDLAYERS
Syntax:
$!FIELDLAYERS
[optional parameters]
Description:
76
A SetValue command that turns field plot layers on or off, or sets the 2-D draw
order.
Optional Parameters:
Parameter Syntax
Notes
SHOWMESH
= <boolean>
SHOWCONTOUR
= <boolean>
SHOWVECTOR
= <boolean>
SHOWSCATTER
= <boolean>
SHOWSHADE
= <boolean>
SHOWBOUNDARY
= <boolean>
TWODDRAWORDER = <twoddraworder>
USETRANSLUCENCY = <boolean>
USELIGHTINGEFFECT = <boolean>
Example:
$!FILECONFIG
Syntax:
$!FILECONFIG
[optional parameters]
Description:
Optional Parameters:
Parameter Syntax
DATAFILEVARLOADMODE
LAYOUTCONFIG
{
USERELATIVEPATHS
Notes
=
Set the default loading mode for variables. The default
<varloadmode is BYNAME. To get Tecplot Version 7.0 behavior, use
>
BYPOSITION.
= <boolean>
INCLUDEDATA
= <boolean>
INCLUDEPREVIEW
= <boolean>
77
Parameter Syntax
TEMPFILEPATH
FNAMEFILTER
{
OUTPUTLAYOUTFILE
OUTPUTLAYOUTPACKAGEFILE
INPUTDATAFILE
OUTPUTASCIIDATAFILE
OUTPUTBINARYDATAFILE
INPUTLAYOUTFILE
STYLEFILE
MACROFILE
EQUATIONFILE
COLORMAPFILE
IMPORTIMAGEFILE
}
DOAUTOFNAMEEXTENSION
Notes
= <string>
= <string>
= <string>
= <string>
= <string>
= <string>
= <string>
= <string>
= <string>
= <string>
= <string>
= <string>
= <boolean>
File Name Filters:Valid chracters 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, separate
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.
$!FILECONFIG FNAMEFILTER {INPUTLAYOUTFILE =
"*.wsf;*.dwr;*.lay;*.lpk"}
Windows Example:This example filters both extensions when writing a layout file. The default
extension is .wsf because it is the first extension presented in the list.
$!FILECONFIG FNAMEFILTER {OUPUTLAYOUTFILE = "
.wsf;*.lay"}
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 FNAMEFILTER {OUTPUTASCIIDATAFILE =
"*.[dc]a[tm]"}
Example:
78
$!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:
Parameter Syntax
Notes
INTERCHARSPACING
<op> <integer>
SUBSUPFRACTION
<op> <double>
BOLDFACTOR
<op> <double>
STROKEFONTLINETHICKNESS
<op> <double>
Example:
79
$!FRAMECONTROL DELETETOP
Syntax:
$!FRAMECONTROL DELETETOP
[no parameters]
Description:
Example:
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 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:
80
Optional Parameter:
Parameter Syntax
Default
Notes
FRAME = <integer>
Example:
$!FRAMECONTROL POPATPOSITION
Syntax:
$!FRAMECONTROL POPATPOSITION
X = <dexp>
Y = <dexp>
Description:
Required Parameters:
Parameter Syntax
Notes
X = <dexp>
Y = <dexp>
Example:
Pop the frame beneath the location 2 inches from the top edge of the paper and 3
inches from the left edge of the paper:
$!FRAMECONTROL POPATPOSITION
X = 3
Y = 2
$!FRAMECONTROL POPBYNAME
Syntax:
$!FRAMECONTROL POPBYNAME
NAME = <string>
Description:
81
Example:
$!FRAMECONTROL POPBYNAME
NAME = "BANANA"
$!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:
Parameter Syntax
Default
Notes
FRAME = <integer>
numframes
$!FRAMECONTROL PUSHBYNAME
Syntax:
$!FRAMECONTROL PUSHBYNAME
NAME = <string>
Description:
Example:
$!FRAMECONTROL PUSHBYNAME
NAME = "BANANA"
$!FRAMECONTROL PUSHTOP
Syntax:
$!FRAMECONTROL PUSHTOP
[no parameters]
82
Description:
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.
Optional Parameters:
Parameter Syntax
Notes
SHOWBORDER
= <boolean>
SHOWHEADER
= <boolean>
ISTRANSPARENT
= <boolean>
BACKGROUNDCOLOR
= <color>
HEADERCOLOR
= <color>
HEADERFONT
= <font>
BORDERTHICKNESS
<op> <dexp>
WIDTH
<op> <dexp>
Value is in inches.
HEIGHT
<op> <dexp>
Value is in inches.
XYPOS
<<xy>>
Example:
Place the current frame in the upper left corner of the paper (offset 0.5 inches
from the top and left edges), make the frame dimensions 3 by 4 inches, and turn
off the frame border:
$!FRAMELAYOUT
SHOWBORDER = NO
XYPOS
{
X = 0.5
Y = 0.5
}
WIDTH = 3
HEIGHT = 4
83
$!FRAMENAME
Syntax:
$!FRAMENAME = <string>
[no parameters]
Description:
Example:
$!FRAMESETUP
Syntax:
$!FRAMESETUP
[optional parameters]
Description:
A SetValue command that sets parameters used to preset dynamic frame attributes
when a frame is initialized.
Optional Parameters:
Parameter Syntax
Notes
ALIGNINGCONTOURLABELS = <boolean>
VECTMINLEN
<op> <dexp>
VECTDEFLEN
<op> <dexp>
When a vector plot is drawn for the first time the vector
magnitude is adjusted so the longest vector is
VECTDEFLEN units long. VECDEFLEN is in frame
units.
INITIAL3DSCALE
<op> <dexp>
Example:
Make the default length for the longest vector five percent:
$!FRAMESETUP
VECTDEFLEN = 5
84
$!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:
Parameter Syntax
Notes
AUXDATALOCATION
= zone/dataset/frame
NAME
= <string>
Optional Parameters:
Parameter Syntax
Notes
ZONE
= <integer>
VAR
= <integer>
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>
Fetch the count of how many zones share connectivity with the specified zone.
Count includes specified zone.
85
Required Parameters:
Parameter Syntax
ZONE
Example:
Notes
= <integer>
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|.
$!GETCURFRAMENAME |CFRAME|
$!GETFIELDVALUE
86
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:
Parameter Syntax
Notes
ZONE
= <integer>
VAR
= <integer>
INDEX
= <integer>
Example:
$!GETFIELDVALUEREFCOUNT
Syntax:
$!GETFIELDVALUEREFCOUNT <macrovar>
ZONE = <integer>
VAR
= <integer>
Get the count of how zones many share the indicated variable with the specified
zone. Count includes the specified zone.
Required Parameters:
Parameter Syntax
Notes
ZONE
= <integer>
VAR
= <integer>
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.
87
$!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>
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:
Parameter Syntax
Notes
ZONE = <integer>
ELEMENT = <integer>
CORNER = <integer>
Example:
Get the index for the node at corner 3 of the last element in zone number 1.
$!GETZONETYPE |ZONETYPE|
ZONE = 1
$!IF "|ZONETYPE|" = "ORDERED"
$!GETNODEINDEX |INDEX|
ZONE = 1
ELEMENT = |MAXJ|
CORNER = 3
... Do something with |INDEX|...
$!ENDIF
88
$!GETVARLOCATION
Syntax:
$!GETVARLOCATION <macrovar>
ZONE = <integer>
VAR
= <integer>
Description:
Required Parameter:
Parameter Syntax
Notes
ZONE = <integer>
VAR = <integer>
Example:
$!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:
Parameter Syntax
Notes
NAME = <string>
Name of the variable. If a variable has aliases, the name must correspond
to one of the aliases.
Example:
Get the variable number for the variable named PRESSURE and make it the
contouring variable.
$!GETVARNUMBYNAME |PVARNUM|
89
NAME = "PRESSURE"
$!GLOBALCONTOUR
VAR = |PVARNUM|
$!GETZONETYPE
Syntax:
$!GETZONETYPE = <macrovar>
ZONE = <integer>
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:
Parameter Syntax
Notes
ZONE = <integer>
Example:
$!GETZONETYPE |ZONETYPE|
ZONE = 1
$!IF "|ZONETYPE|" == "FETRIANGLE"
$!PAUSE "The zone is FE-Triangle."
$!ENDIF
$!GLOBALCONTOUR
Syntax:
$!GLOBALCONTOUR [<contourgroup>]
[optional parameters]
Description:
90
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.
Optional Parameters:
Parameter Syntax
Notes
VAR
= <integer>
LABELS
{
SHOW
GENERATEAUTOLABELS
= <boolean>
= <boolean>
ALIGNAUTOLABELS
= <boolean>
LABELWITHVALUE
= <boolean>
AUTOLEVELSKIP
AUTOLABELSPACING
COLOR
ISFILLED
FILLCOLOR
MARGIN
TEXTSHAPE
NUMFORMAT
<op> <integer>
<op> <dexp>
= <color>
= <boolean>
= <color>
<op> <dexp>
<<textshape>>
<<numberformat>>
}
LEGEND
{
LABELLOCATION
LABELINCREMENT
ANCHORALIGNMENT
SHOW
SHOWHEADER
ROWSPACING
ISVERTICAL
OVERLAYBARGRID
TEXTCOLOR
XYPOS
BOX
HEADERTEXTSHAPE
NUMBERTEXTSHAPE
AUTORESIZE
AUTOSIZEMAXLIMIT
CONTCOLORLABELDELTA
INCLUDECUTOFFLEVELS
}
COLORCUTOFF
{
RANGEMIN
RANGEMAX
INCLUDEMIN
INCLUDEMAX
}
<<contlabellocation>>
= <double>
= <anchoralignment>
= <boolean>
= <boolean>
<op> <dexp>
= <boolean>
= <boolean>
= <color>
<<xy>>
<<textbox>>
<<textshape>>
<<textshape>>
= <boolean>
= <double>
= <double>
= <boolean>
<op> <dexp>
<op> <dexp>
= <boolean>
= <boolean>
91
Parameter Syntax
Notes
CONTOURLINESTYLE
{
CONTOURLINEMODE
LINESKIP
PATTERNLENGTH
}
COLORMAPFILTER
{
REVERSECOLORMAP
COLORMAPCYCLES
COLORMAPOVERRIDEACTIVE
COLORMAPOVERRIDE
ZEBRA
COLORMAPDISTRIBUTION
CONTINUOUSCOLOR
= <contourlinemode>
<op> <integer>
<op> <dexp>
= <boolean>
<op> <integer>
= <boolean>
<integer>
<<colormapoverride>>
<<zebrashade>>
<colormapdistribution>
<<continuouscolor>>
= <boolean>
USEFASTSPPROXCONTINUOUS
FLOOD
}
DEFNUMLEVELS
= <integer>
Default = FALSE
Example:
This example does the following: Turns on the contour legend; Sets the flood
cutoff to go from 3 to 5; Reverses the color map; Inserts a color map override of yellow between
contour level number 7 and level number 9.
$!GLOBALCONTOUR [1]
LEGEND
{
SHOW = YES
}
COLORCUTOFF
{
RANGEMIN = 3
RANGEMAX = 5
INCLUDEMIN
= TRUE
INCLUDEMAX = TRUE
}
COLORMAPFILTER
{
REVERSECOLORMAP = TRUE
COLORMAPOVERRIDEACTIVE = TRUE
COLORMAPOVERRIDE 1
92
{
INCLUDE
COLOR
STARTLEVEL
ENDLEVEL
=
=
=
=
YES
YELLOW
7
9
}
}
$!GLOBALFRAME
Syntax:
$!GLOBALFRAME
[optional parameters]
Description:
Optional Parameters:
Parameter Syntax
Notes
FRAMEHEADERHEIGHT
<op> <dexp>
Value is in inches.
SNAPTOGRID
= <boolean>
FRAMEHEADERFORMAT
= <string>
SNAPTOPAPER
= <boolean>
Example:
Customize the frame header text, and set the frame header height to be 0.25
inches:
$!GLOBALFRAME
FRAMEHEADERFORMAT = "My frame, the current date is
&(Date), &(Time)"
FRAMEHEADERHEIGHT = 0.25
$!GLOBALISOSURFACE
Syntax:
$!GLOBALISOSURFACE
93
[optional parameters]
Description:
Optional Parameters:
Parameter Syntax
Notes
SHOW
= <boolean>
ISOSURFACESELECTION
= <isosurfaceselection>
ISOVALUE1
= <double>
ISOVALUE2
= <double>
ISOVALUE3
= <double>
MESH
{
SHOW
COLOR
LINETHICKNESS
}
CONTOUR
{
SHOW
USELIGHTINGEFFECT
CONTOURTYPE
FLOODCOLORING
LINECONTOURGROUP
COLOR
LINETHICKNESS
}
SHADE
{
SHOW
COLOR
USELIGHTINGEFFECT
}
SURFACEEFFECTS
{
LIGHTINGEFFECT
SURFACETRANSLUCENCY
USETRANSLUCENCY
}
= <boolean>
= <color>
= <double>
= <boolean>
= <boolean>
= <contourtype>
=
=
=
=
<contourcoloring>
<sminteger>
<color>
<double>
= <boolean>
= <color>
= <boolean>
= <lightingeffect>
= <translucency>
= <boolean>
DEFINITIONCONTOURGROU = <sminteger>
P
MARCHINGCUBEALGORITHM = [classic or classicplus]
$Example:
94
!GLOBALISOSURFACE
ISOSURFACESELECTION = ONESPECIFICVALUE
ISOVALUE1 = 113.626812744
MESH{SHOW = YES}
MESH{COLOR = BLUE}
MESH{LINETHICKNESS = 0.4}
CONTOUR{SHOW = YES}
SURFACEEFFECTS{LIGHTINGEFFECT = PANELED}
SURFACEEFFECTS{SURFACETRANSLUCENCY = 60}
$!GLOBALLINEPLOT
Syntax:
$!GLOBALLINEPLOT
[optional parameters]
Description:
Optional Parameters:
Parameter Syntax
Notes
DATALABELS
{
SHOWNODELABELS
COLOR
INCLUDEBOX
NODELABELTYPE
INDEXSKIP
DISTANCESKIP
SKIPMODE
TEXTSHAPE
NUMFORMAT
COLORBYZONEMAP
}
LEGEND
{
SHOW
SHOWTEXT
TEXTCOLOR
ROWSPACING
TEXTSHAPE
BOX
XYPOS
ANCHORALIGNMENT
}
Example:
= <boolean>
= <color>
= <boolean>
= <nodelabeltype>
<op> <integer>
<op> <dexp>
= <skipmode>
<<textshape>>
<<numberformat>>
= <boolean>
= <boolean>
= <boolean>
= <color>
<op> <dexp>
<<textshape>>
Not allowed to change size units.
<<textbox>>
<<xy>>
= <anchoralignment>
Turn on the data labels and show the Line-legend. Use the TIMESBOLD font in
95
the legend:
$!GLOBALLINEPLOT
DATALABELS
{
SHOWNODELABELS = YES
}
LEGEND
{
SHOW = YES
TEXTSHAPE
{
FONT = TIMESBOLD
}
}
$!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:
Parameter Syntax
Notes
DRAWSTRAIGHTLINES
= <boolean>
ANGLE
= <float>
Example:
This example turns on curved lines and defines the maximum angle to be
approximated as a curved line to be 2.0 degrees..
$!GLOBALPOLAR
DRAWSTRAIGHTLINES = FALSE
ANGLE = 2.0
96
$!GLOBALRGB
Example:
Syntax:
$!GLOBALRGB
RGBMode = <RGBMode>
[optional parameters]
Description:
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 Water.
RGB Coloring can be assigned to field plot objects such as zones, iso-surfaces
and slices
Required Parameter:
Parameter Syntax
RGBMODE
Notes
= SpecifyRGB
SpecifyRG
SpecifyRB
SpecifyGB
Optional Parameters:
Parameter Syntax
Notes
REDCHANNELVAR
= <integer>
GREENCHANNELVAR
= <integer>
BLUECHANNELVAR
= <integer>
RANGEMIN
= <double>
Default=0.0
97
Parameter Syntax
Notes
= <double>
RANGEMAX
LEGEND
{
SHOW
SHOWLABELS
TEXTCOLOR
HEIGHT
XYPOS
TEXTSHAPE
BOX
AHCHOR
USEREDVARNAME
REDCHANNELLABEL
USEGREENVARNAME
GREENCHANNELLABEL
USEBLUEVARNAME
BLUECHANNELLABEL
RGBLEGENDORIENTATION
}
Example:
Default=1.0
= <boolean>
= <boolean>
= <color>
= <double>
<<xy>>
<<textshape>>
<<textbox>>
= <anchoralighnment>
= <boolean>
= <string>
= <boolean>
= <string>
= <boolean>
= <string>
= [OrientRGB,
OrientGBR,
OrientBRG,
OrientRBG,
OrientBGR,
OrientGRB]
This example turns on RGB Coloring and defines variables for the Red and Green
Channel, leaving Tecplot to calculate the Blue Channel values.
$!GLOBALRGB
RGBMODE = SPECIFYRG
REDCHANNELVAR = 1
GREENCHANNELVAR = 4
$!GLOBALSCATTER
Syntax:
$!GLOBALSCATTER
[optional parameters]
Description:
A SetValue command that changes global attributes associated with scatter plots.
Optional Parameters:
Parameter Syntax
98
Notes
VAR
= <integer>
RELATIVESIZE
<op> <dexp>
Parameter Syntax
Notes
RELATIVESIZEINGRIDUNITS = <boolean>
= <font>
BASEFONT
LEGEND
{
SHOW
SHOWTEXT
TEXTCOLOR
ROWSPACING
TEXTSHAPE
BOX
ANCHORPOS
}
= <boolean>
= <boolean>
= <color>
<op> <dexp>
<<textshape>>
<<textboxtype>>
<<anchorpos>>
REFSCATSYMBOL
{
SHOW
COLOR
ISFILLED
FILLCOLOR
LINETHICKNESS
MAGNITUDE
XYPOS
SYMBOLSHAPE
}
DATALABELS
{
SHOWNODELABELS
SHOWCELLLABELS
COLOR
INCLUDEBOX
NODELABELTYPE
NODELABELVAR
INDEXSKIP
DISTANCESKIP
SKIPMODE
TEXTSHAPE
NUMFORMAT
CELLLABELTYPE
CELLLABELVAR
COLORBYZONEMAP
}
= <boolean>
= <color>
= <boolean>
= <color>
<op> <dexp>
<op> <dexp>
<<xy>>
<<symbolshape>>
These are text labels that can be added to a plot to show
node or cell values.
= <boolean>
= <boolean>
= <color>
= <boolean>
= <nodelabeltype>
<op> <integer>
<op> <integer>
<op> <dexp>
= <skipmode>
<<textshape>>
<<numberformat>>
= <labeltype_e>
= <entindex_t>
= <boolean>
SPHERESCATTERRENDER =
Takes values LOW, MEDIUM, or HIGH. Config file only
QUALITY
<spherescatterrender option.
quality>
Example:
Increases the relative size of scatter symbols that are sized by variable
by ten percent.
Turns on the scatter sizing legend.
99
$!GLOBALSCATTER
RELATIVESIZE * = 1.1
LEGEND
{
SHOW = YES
}
REFSCATSYMBOL
{
SHOW = YES
COLOR = RED
}
DATALABELS
{
SHOWNODELABELS = TRUE
}
$!GLOBALSLICE
Syntax:
$!GLOBALSLICE
[optional parameters]
Description:
Optional Parameters:
Parameter Syntax
= <boolean>
SHOWPOSITION2
= <boolean>
SHOWINTERMEDIATESLICES
= <boolean>
NUMINTERMEDIATESLICES
= <integer>
SLICESURFACE
= <slicesurface>
POSITION1
{
X
Y
Z
I
J
K
}
100
Notes
SHOW
=
=
=
=
=
=
<double>
<double>
<double>
<integer>
<integer>
<integer>
Parameter Syntax
POSITION2
{
X
Y
Z
I
J
K
}
MESH
{
SHOW
COLOR
LINETHICKNESS
}
CONTOUR
{
SHOW
CONTOURTYPE
COLOR
LINETHICKNESS
USELIGHTINGEFFECT
FLOODCOLORING
LINECONTOURGROUP
}
SHADE
{
SHOW
COLOR
USELIGHTINGEFFECT
}
VECTOR
{
SHOW
COLOR
ISTANGENT
LINETHICKNESS
VECTORTYPE
ARROWHEADSTYLE
}
BOUNDARY
{
SHOW
COLOR
LINETHICKNESS
}
SURFACEEFFECTS
{
LIGHTINGEFFECT
SURFACETRANSLUCENCY
USETRANSLUCENCY
}
Notes
=
=
=
=
=
=
<double>
<double>
<double>
<integer>
<integer>
<integer>
= <boolean>
= <color>
= <double>
= <boolean>
= <contourplottype>
= <color>
= <double>
= <boolean>
= <contourcoloring_e>
= <sminteger_t>
= <boolean>
= <color>
= <boolean>
= <boolean>
= <color>
= <boolean>
= <double>
= <vectorplottype>
= <arrowheadstyle>
= <boolean>
= <color>
= <op><dexp>
= <lightingeffect>
= <translucency>
= <boolean>
101
Example:
$!GLOBALSLICE POSITION1 {X = 6}
$!GLOBALCONTOUR VAR = 4
$!GLOBALSLICE SHOW = YES
$!GLOBALSLICE POSITION2 {X = 1}
$!GLOBALSLICE SHOWPOSITION2 = YES
$!GLOBALSLICE SHOWINTERMEDIATESLICES = YES
$!GLOBALSLICE NUMINTERMEDIATESLICES = 6
$!REDRAW
$!CREATESLICEZONES
$!GLOBALSTREAM
Syntax:
$!GLOBALSTREAM
[optional parameters]
Description:
Optional Parameters:
Parameter Syntax
102
Notes
SHOW
= <boolean>
ADDARROWS
= <boolean>
CELLFRACTION
<op> <dexp>
MINCELLFRACTION
<op> <dexp>
ARROWHEADSIZE
<op> <dexp>
ARROWHEADSPACING
<op> <double>
Parameter Syntax
RODRIBBON
{
WIDTH
NUMRODPOINTS
MESH
{
SHOW
COLOR
LINETHICKNESS
}
CONTOUR
{
SHOW
USELGHTINGEFFECT
FLOODCOLORING
}
SHADE
{
SHOW
COLOR
USELIGHTINGEFFECT
}
SURFACEEFFECT
{
LIGHTINGEFFECT
SURFACETRANSLUCENCY
USETRANSLUCENCY
}
}
Notes
<op><dexp>
<op> <integer>
= <boolean>
= <color>
<op><dexp>
= <boolean>
= <boolean>
= <contourcoloring_e>
= <boolean>
= <color>
= <boolean>
= <lightingeffect>
= <translucency>
= <boolean>
LINETHICKNESS
<op> <dexp>
MAXSTEPS
<op> <integer>
COLOR
= <color>
103
Parameter Syntax
Notes
STREAMTIMING
{
DOTIMEMARKS
DOTIMEDASHES
DELTATIME
STARTTIME
ENDTIME
MARKCOLOR
MARKSIZE
DASHSKIP
MARKSYMBOL
}
= <boolean>
= <boolean>
<op> <dexp>
<op> <dexp>
<op> <dexp>
= <color>
<op> <dexp>
<op> <integer>
<<symbolshape>>
TERMLINE
{
ISACTIVE
SHOW
COLOR
LINEPATTERN
PATTERNLENGTH
LINETHICKNESS
}
= <boolean>
= <boolean>
= <color>
= <linepattern>
<op> <dexp>
<op> <dexp>
$!GLOBALTHREED
Syntax:
$!GLOBALTHREED
[optional parameters]
Description:
A SetValue command that changes global attributes associated with 3-D plots.
Optional Parameters:
Parameter Syntax
PERFORMEXTRA3DSORTING
<boolean>
AXISBOXPADDING
<op> <dexp>
LINELIFTFRACTION
<op> <dexp>
SYMBOLLIFTFRACTION
<op> <dexp>
VECTORLIFTFRACTION
<op> <dexp>
SLICE
{
ORIGIN
NORMAL
}
104
Notes
<<xyz>>
<<xyz>>
Parameter Syntax
Notes
AXISSCALEFACT
<<xyz>>
ROTATEORIGIN
<<xyz>>
LIGHTSOURCE
{
XYZDIRECTION
INTENSITY
BACKGROUNDLIGHT
SURFACECOLORCONTRAST
INCLUDESPECULAR
SPECULARINTENSITY
SPECULARSHININESS
}
<<xyz>>
= <double>
= <double>
= <double>
= <boolean>
= <integer>
= <integer>
FORCEGOURADFOR3DCONTFLOOD
= <boolean>
Default = TRUE
FORCEPANELEDFOR3DCELLFLOOD
= <boolean>
Default = TRUE
Example:
$!GLOBALTHREEDVECTOR
Syntax:
$!GLOBALTHREEDVECTOR
[optional parameters]
105
Description:
A SetValue command that changes global attributes associated with 3-D vector
plots.
Optional Parameters:
Parameter Syntax
Notes
RELATIVELENGTH
<op> <dexp>
UNIFORMLENGTH
<op> <dexp>
USERELATIVE
= <boolean>
RELATIVELENGTHINGRIDUNITS = <boolean>
HEADSIZEASFRACTION
<op> <dexp>
HEADSIZEINFRAMEUNITS
<op> <dexp>
SIZEHEADBYFRACTION
= <boolean>
ARROWHEADANGLE
<op> <dexp>
Angle is in degrees.
UVAR
= <integer>
VVAR
= <integer>
WVAR
= <integer>
REFVECTOR
{
SHOW
COLOR
MAGNITUDE
LINETHICKNESS
ANGLE
XYPOS
MAGNITUDELABEL
{
SHOW
TEXTCOLOR
TEXTSHAPE
NUMFORMAT
OFFSET
}
Example:
= <boolean>
= <color>
<op> <dexp>
<op> <dexp>
<op> <dexp>
<<xy>>
= <boolean>
= <color>
<<textshape>>
<<numberformat>>
= <double>
$!GLOBALTHREEDVECTOR
USERELATIVE = FALSE
106
UNIFORMLENGTH = 5
HEADSIZEASFRACTION = .2
REFVECTOR
{
SHOW = FALSE
}
$!GLOBALTWODVECTOR
Syntax:
$!GLOBALTWODVECTOR
[optional parameters]
Description:
A SetValue command that changes global attributes associated with 2-D vector
plots.
Optional Parameters:
Parameter Syntax
Notes
RELATIVELENGTH
<op> <dexp>
UNIFORMLENGTH
<op> <dexp>
USERELATIVE
= <boolean>
RELATIVELENGTHINGRIDUNITS = <boolean>
HEADSIZEASFRACTION
<op> <dexp>
SIZEHEADBYFRACTION
= <boolean>
ARROWHEADANGLE
<op> <dexp>
Angle is in degrees.
UVAR
<op> <integer>
107
Parameter Syntax
REFVECTOR
{
SHOW
COLOR
MAGNITUDE
LINETHICKNESS
ANGLE
XYPOS
MAGNITUDELABEL
{
SHOW
TEXTCOLOR
TEXTSHAPE
NUMFORMAT
OFFSET
}
Example:
Notes
<op> <integer>
VVAR
= <boolean>
= <color>
<op> <dexp>
<op> <dexp>
<op> <dexp>
<<xy>>
= <boolean>
= <color>
<<textshape>>
<<numberformat>>
= <double>
- Doubles the vector length (assume vectors currently drawn using relative length).
- Make the vector heads uniform in size; 2 percent in frame units.
- Make the head angle 15 degrees.
$!GLOBALTWODVECTOR
RELATIVELENGTH
* = 2
SIZEHEADBYFRACTION
= NO
HEADSIZEINFRAMEUNITS = 2
HEADANGLE
= 15
$!IF...$!ENDIF
Syntax:
$!IF <conditionalexp>
$!ENDIF
Description:
Example 1:
Process macro commands if the macro variable |myvar| is less than 73.2:
$!IF |myvar| < 73.2
.
.
.
$!ENDIF
Example 2:
108
$!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:
$!INTERFACE
Syntax:
$!INTERFACE
[optional parameters]
Description:
109
Optional Parameters:
Parameter Syntax
Notes
ALLOWDATAPOINTSELECT = <boolean>
APPROXIMATIONMODE = <boolean>
AUTOREDRAWISACTIVE= <boolean>
BACKINGSTOREMODE = <backingstoremode>
BEEPONFRAMEINTERRUPT = <boolean>
CACHELIGHTDISPLAYLISTSONLY = <boolean>
CONSERVEDERIVEDVARIABLESPACE
110
Parameter Syntax
Notes
DIALOGPLACEMENT
{
ADVANCED3DCONTROLDIALOG
AXISEDITDIALOG
COLORMAPDIALOG
CONTOURDIALOG
CREATE1DLINEDIALOG
CREATECIRCULARZONEDIALOG
CREATERECTANGULARZONEDIALOG
CREATEZONEFROM POLYLINESDIALOG
CREATEZONEFROMVALUESDIALOG
CURVEINFODIALOG
DATAINFODIALOG
DATALABELSDIALOG
DATASPREADSHEETDIALOG
DELETEVARIABLESDIALOG
DELETEZONESDIALOG
DEPTHBLANKINGDIALOG
DUPLICATEZONEDIALOG
EQUATIONDIALOG
EXPORTDIALOG
EXTRACTCONTOURLINESDIALOG
EXTRACTDISCRETEPOINTSDIALOG
EXTRACTFEBOUNDARYDIALOG
EXTRACTISOSURFACESDIALOG
EXTRACTPOINTSFROMGEOMETRYDIALOG
EXTRACTPOINTSFROMPOLYLINEDIALOG
EXTRACTSLICEFROMPLANEDIALOG
EXTRACTSLICESDIALOG
EXTRACTSTREAMTRACESDIALOG
EXTRACTSUBZONEDIALOG
IJKBLANKINGDIALOG
IMPORTDIALOG
INVERSEDISTANCEINTERPOLATIONDIALOG
ISOSURFACESDIALOG
KRIGINGINTERPOLATIONDIALOG
LIGHTSOURCEDIALOG
LINEARINTERPOLATIONDIALOG
LINEMAPLEGENDDIALOG
LOADDATADIALOG
MACROPLAYDIALOG
MACRORECORDDIALOG
MACROVIEWERDIALOG
MIRRORZONEDIALOG
NEWLAYOUTDIALOG
OPENLAYOUTDIALOG
ORDERFRAMESDIALOG
PAPERSETUPDIALOG
POLARDRAWINGOPTIONSDIALOG
PRINTDIALOG
PROBEATDIALOG
PROBEDIALOG
QUICKEDITDIALOG
QUICKMACROPANELDIALOG
RESET3DAXESDIALOG
RGBCOLORLEGENDDIALOG
RGBCOLORVARSANDRANGEDIALOG
ROTATE2DDATADIALOG
The DIALOGPLACMENT
parameter may only appear in
the tecplot config file. You
may specify the placement of
the indicated dialogs.
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
111
Parameter Syntax
RULERGRIDDIALOG
SAVEASDIALOG
SAVEDIALOG
SCATTERLEGENDDIALOG
SCATTERREFERENCESYMBOLDIALOG
SCATTERSIZEANDFONTDIALOG
SLICESDIALOG
SMOOTHDIALOG
SPATIALVARSDIALOG
STREAMTRACESDIALOG
STYLELINKINGDIALOG
THREEDAXISLIMITSDIALOG
THREEDORIENTATIONAXISDIALOG
THREEDVIEWDETAILSDIALOG
THREEDVIEWROTATEDIALOG
TRANSFORMCOORDINATESDIALOG
TRANSLATEMAGNIFYDIALOG
TRIANGULATEDIALOG
TWODDRAWORDERDIALOG
VALUEBLANKINGDIALOG
VECTORARROWHEADSDIALOG
VECTORLENGTHDIALOG
VECTORREFERENCEVECTORDIALOG
VECTORVARSDIALOG
WRITEDATADIALOG
ZONEMAPSTYLEDIALOG
DATA
{
SMOOTHBNDRYCOND
NUMSMOOTHPASSES
SMOOTHWEIGHT
INVDISTEXPONENT
INVDISTMINRADIUS
LINEARINTERPCONST
LINEARINTERPMODE
INTERPPTSELECTION
INTERPNPOINTS
KRIGRANGE
KRIGZEROVALUE
KRIGDRIFT
DERIVATIVEBOUNDARY
TRIANGLEKEEPFACTOR
VARIABLEDERIVATIONMETHOD
CONTLINECREATEMODE
}
112
Notes
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
<<dialogplacement>>
Settings for smoothing and
interpolation.
= <boundarycondition>
<op> <integer>
<op> <dexp>
<op> <dexp>
<op> <dexp>
<op> <dexp>
= <linearinterpmode>
= <pointselection>
<op> <integer>
<op> <dexp>
<op> <dexp>
= <drift>
= <derivpos>
<op> <dexp>
Default = ACCURATE Note
= <ACCURATE or
that this is a config file option
FAST>
only.
=
<ONEZONEPERCONTO
URLEVER or
ONEZONEPERINDEPEN
DENTPOLYLINE>
ENABLEDELAYS
= <boolean>
ENABLEINTERRUPTS
= <boolean>
ENABLEPAUSES
= <boolean>
Parameter Syntax
Notes
ENABLEWARNINGS
= <boolean>
FEBOUNDARYUSESVALUEBLANKING
= <boolean>
INITIALPLOTFIRSTZONEONLY
= <boolean>
INITIALPLOTTYPE
= <plottype>
Default is Automatic
INTERRUPTCHECKINGFREQUENCY
= <integer>
LISTCOMMANDSINMACROVIEWER
= <boolean>
LOADADDONSUSINGLAZYRELOCATE
= <boolean>
MAXCUSTOMCOLORSININTERFACE
= <integer>
MAXTRACELINES
<integer>
MINPIXELSFORDRAG
<integer>
113
Parameter Syntax
MOUSEACTIONS
{
MIDDLEBUTTON
{
BUTTONCLICK
SIMPLEDRAG
CONTROLLEDDRAG
ALTEDDRAG
SHIFTEDDRAG
CONTROLALTEDDRAG
CONTROLSHIFTEDDRAG
ALTSHIFTEDDRAG
CONTROLALTSHIFTEDDRAG
}
RIGHTBUTTON
{
BUTTONCLICK
SIMPLEDRAG
CONTROLLEDDRAG
ALTEDDRAG
SHIFTEDDRAG
CONTROLALTEDDRAG
CONTROLSHIFTEDDRAG
ALTSHIFTEDDRAG
CONTROLALTSHIFTEDDRAG
}
}
114
Notes
<mousebuttonclick>
<mousebuttondrag>
<mousebuttondrag>
<mousebuttondrag>
<mousebuttondrag>
<mousebuttondrag>
<mousebuttondrag>
<mousebuttondrag>
<mousebuttondrag>
<mousebuttonclick>
<mousebuttondrag>
<mousebuttondrag>
<mousebuttondrag>
<mousebuttondrag>
<mousebuttondrag>
<mousebuttondrag>
<mousebuttondrag>
<mousebuttondrag>
NUMMOUSEBUTTONS
<integer>
NUMPTSALLOWEDBEFOREAPPROX
<integer>
Parameter Syntax
Notes
OKTOEXECUTESYSTEMCOMMAND
= <boolean>
OPENGLCONFIG
{
RUNDISPLAYLISTSAFTERBUILDING
= <boolean>
ALLOWHWACCELERATION
= <boolean>
SCREENRENDERING
IMAGERENDERING
MAXFILTERMAGNIFICATION
<<renderconfig>>
<<renderconfig>>
= <integer>
= <integer>
PICKHANDLEWIDTH
<op> <dexp>
115
Parameter Syntax
=
<plotapproximationmode
>
PRINTDEBUG
= <boolean>
If TRUE, debugging
information is sent to the
standard output.
QUICKCOLORMODE
= <quickcolormode>
ROTATION
{
ROTATIONMODE
CURRENTANGLE
SMALLANGLE
MEDIUMANGLE
LARGEANGLE
ROTATEDEGPERFRAMEUNIT
SHOWGEOMS
}
= <rotationmode>
= <op> <dexp>
= <op> <dexp>
= <op> <dexp>
= <op> <dexp>
= <integer>
= <boolean>
ROTATEDEGPERFRAMEUNIT
= <integer>
RULERPADDING
<op> <dexp>
RULERTHICKNESS
<op> <dexp>
SCALE
{
STEPSIZE
SMALLSTEP
MEDIUMSTEP
LARGESTEP
ZOOMSCALEPERFRAMEUNIT
}
<op> <dexp>
<op> <dexp>
<op> <dexp>
<op> <dexp>
<op> <double>
SCRBACKGROUNDCOLOR
= <color>
SECURESPOOLCOMMANDS
= <boolean>
SHOWCONTINUOUSSTATUS
SHOWCOORDINATES
SHOWFRAMEBORDERSWHENOFF
116
Notes
PLOTAPPROXIMATIONMODE
= <boolean>
= <boolean>
= <boolean>
Parameter Syntax
SHOWSTATUSLINE
SHOWTEXTGEOMSINAPPROXVIEWS
Notes
= <boolean>
= <boolean>
SHOWWAITDIALOGS
= <boolean>
SOFTWARE3DRENDERING
= <boolean>
TRACEREDRAWMODE
= <traceredrawmode>
TRANSLATION
{
STEPSIZE
SMALLSTEP
MEDIUMSTEP
LARGESTEP
}
<op> <dexp>
<op> <dexp>
<op> <dexp>
<op> <dexp>
UNIXHELPBROWSERCMD
= <string>
USEAPPROXIMATEPLOTS
= <boolean>
USEDISPLAYLISTS
= <boolean>
USEDOUBLEBUFFERING
= <boolean>
USEDOUBLEFORDISPLAYLISTS
= <boolean>
USEFASTAPPROXCONTINUOUSFLOOD
= <boolean>
USEINITIALPLOTDIALOG
= <boolean>
Default is On.
USESTROKEFONTSFOR3DTEXT
= <boolean>
USESTROKEFONTSONSCREEN
= <boolean>
117
Parameter Syntax
Notes
USETECPLOTPRINTDRIVERS
= <boolean>
XORCOLOR
<op> <integer>
ZONEMAPNAMECOLUMNWIDTH
= <double>
Example:
Makes the frame borders show on the screen when they are turned off.
Makes the middle mouse button be Redraw.
Makes the right mouse button revert to Selector.
Makes the default number of passes for smoothing 20.
Turns off the status line.
$!INTERFACE
SHOWFRAMEBORDERSWHENOFF = TRUE
MOUSEACTIONS
{
MIDDLEBUTTON
{
BUTTONCLICK = REDRAW
}
RIGHTBUTTON
{
BUTTONCLICK = REVERTTOSELECT
}
}
DATA
{
NUMSMOOTHPASSES = 20
}
SHOWSTATUSLINE = NO
118
$!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:
Parameters Syntax
Notes
DESTINATIONZONE = <integer>
Optional Parameters:
Parameters Syntax Default
SOURCEZONES = <set>
VARLIST
= <set>
INVDISTEXPONENT =
<dexp>
3.5
INVDISTMINRADIUS =
<dexp>
0.0
INTERPPTSELECTION =
<intrpptselection>
OCTANTNPOINTS
INTERPNPOINTS =
<integer>
Example:
Notes
$!KRIG
Syntax:
$!KRIG
119
DESTINATIONZONE = <integer>
[optional parameters]
Description:
Required Parameter:
Parameters Syntax
Notes
DESTINATIONZONE = <integer>
Optional Parameters:
Parameters Syntax
Default
SOURCEZONES = <set>
VARLIST = <set>
KRIGRANGE = <dexp>
0.3
KRIGZEROVALUE = <dexp>
0.0
KRIGDRIFT = <krigdrift>
LINEAR
INTERPPTSELECTION =
<interpptselection>
OCTANTNPOINTS
INTERPNPOINTS = <integer>
Example:
Notes
= [3, 4]
= 2
= [7]
$!LAUNCHDIALOG
Syntax:
$!LAUNCHDIALOG <dialogname>
[no parameters]
Description:
120
Example:
$!LIMITS
Syntax:
$!LIMITS
[optional parameters]
Description:
A SetValue command that sets some of the internal limits in Tecplot. See Tecplot
Users Manual for the default values for these limits. The $!LIMITS command
can only be used in the Tecplot configuration file.
Optional Parameters:
Parameter Syntax
Notes
MAXPTSINALINE
<op> <integer>
MAXCHRSINTEXTLABELS
<op> <integer>
MAXNUMCONTOURLEVELS
<op> <integer>
MAXPREPLOTVARS
<op> <integer>
121
Parameter Syntax
Notes
MAXPREPLOTZONES
<op> <integer>
MAXNUMPICKOBJECTS
<op> <integer>
Example:
$!LINEARINTERPOLATE
Syntax:
$!LINEARINTERPOLATE
DESTINATIONZONE = <integer>
[optional parameters]
Description:
Required Parameter:
Parameters Syntax
Notes
DESTINATIONZONE = <integer>
Optional Parameters:
Parameters Syntax Default
SOURCEZONES = <set>
VARLIST = <set>
Example:
Notes
122
VARLIST
= [3-7]
$!LINEMAP
Syntax:
$!LINEMAP [<set>]
[optional parameters]
Description:
Optional Parameters:
Notes
Parameter Syntax
NAME
ASSIGN
{
ZONE
XAXISVAR
YAXISVAR
THETAAXISVAR
RAXISVAR
XAXIS
YAXIS
FUNCTIONDEPENDENCY
SHOWINLEGEND
SORT
SORTVAR
= <string>
= <integer>
<op> <integer>
<op> <integer>
<op> <integer>
<op> <integer>
<op> <integer>
<op> <integer>
= <functiondependency>
= [ALWAYS,
NEVER,AUTO]
<sortby>
= <integer>
}
CURVES
{
CURVETYPE
EXTENDEDNAME
EXTENDEDSETTINGS
USEWEIGHTVAR
NUMPTS
POLYORDER
WEIGHTVAR
INDVARMIN
INDVARMAX
USEINDVARRANGE
CLAMPSPLINE
= <curvetype>
= <string>
= <string>
= <boolean>
<op> <integer>
<op> <integer>
= <integer>
<op> <dexp>
<op> <dexp>
= <boolean>
= <boolean>
<op> <dexp>
SPLINEDERIVATIVEATSTART
SPLINEDERIVATIVEATEND <op> <dexp>
}
123
Notes
Parameter Syntax
SYMBOLS
{
SHOW
COLOR
FILLMODE
FILLCOLOR
SIZE
LINETHICKNESS
SKIPPING
SKIPMODE
SYMBOLSHAPE
}
BARCHARTS
{
SHOW
COLOR
FILLMODE
FILLCOLOR
SIZE
LINETHICKNESS
}
LINES
{
SHOW
COLOR
LINEPATTERN
PATTERNLENGTH
LINETHICKNESS
}
ERRORBARS
{
SHOW
VAR
BARTYPE
COLOR
LINETHICKNESS
SKIPPING
SKIPMODE
SIZE
}
INDICES
{
IJKLINES
IRANGE
JRANGE
KRANGE
}
ASSIGN
{
SORT
SORTVAR
}
124
= <boolean>
= <color>
= <fillmode>
= <color>
<op> <dexp>
<op> <dexp>
<op> <dexp>
= <skipmode>
<<symbolshape>>
= <boolean>
= <color>
= <fillmode>
= <color>
<op> <dexp>
<op> <dexp>
= <boolean>
= <color>
= <boolean>
= <color>
<op> <dexp>
= <boolean>
= <integer>
= <errorbartype>
= <color>
<op> <dexp>
<op> <dexp>
= <skipmode>
<op> <dexp>
= <ijklines>
<<indexrange>>
<<indexrange>>
<<indexrange>>
<sortby>
= <integer>
Examples:
Example 1: Assign variable 1 to be on the X-axis and variable 4 to be on the Y-axis for Linemapping number 7:
$!LINEMAP [7]
ASSIGN
{
XAXISVAR = 1
YAXISVAR = 4
}
$!LINEPLOTLAYERS
Syntax:
$!LINEPLOTLAYERS
[optional parameters]
Description:
125
Optional Parameters:
Parameter Syntax
Notes
SHOWLINES
= <boolean>
SHOWSYMBOLS
= <boolean>
SHOWBARCHARTS
= <boolean>
SHOWERRORBARS
= <boolean>
Example:
$!LINKING
Syntax:
$!LINKING
[optional parameters]
Description:
126
Link attributes in two or more frames so that changes to attributes of one frame
effect all linked frames.
Optional Parameters:
Parameter Syntax
WITHINFRAME
{
LINKAXISSTYLE
LINKGRIDLINESTYLE
LINKLAYERLINECOLOR
LINKLAYERLINEPATTERN
}
BETWEENFRAMES
{
LINKCONTOURLEVELS
LINKFRAMESIZEANDPOSITION
LINKXAXISRANGE
LINKYAXISRANGE
LINKPOLARVIEW
LINK3DVIEW
LINKGROUP
LINKAXISPOSITION
LINKVALUEBLANKING
LINKSLICEPOSITIONS
LINKISOSURFACEVALUES
}
Example:
Notes
=
=
=
=
<boolean>
<boolean>
<boolean>
<boolean>
=
=
=
=
=
=
=
=
=
=
=
<boolean>
<boolean>
<boolean>
<boolean>
<boolean>
<boolean>
<sminteger_t>
<boolean>
<boolean>
<boolean>
<boolean>
$!LOADADDON
Syntax:
<string>
<string>
ADDONSTYLE = <addonstyle>
$!LOADADDON
INITFUNCTION =
Description:
Load an add-on into Tecplot. The <string> is the name of the add-on to load.
See the Tecplot Users Manual for instructions on how to specify the add-on.
127
Optional Parameters:
Parameters Syntax Default
Notes
INITFUNCTION =
InitTecAddOn
ADDONSTYLE= <string>
V7Standard
<string>
Example:
$!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:
128
$!MACROFUNCTION...$!ENDMACROFUNCTION
Syntax:
$!MACROFUNCTION
NAME = <string>
[optional parameters]
.
.
.
$!ENDMACROFUNCTION
Description:
Required Parameter:
Parameter Syntax
Notes
NAME = <string>
Optional Parameter:
Parameter Syntax
Default
Notes
RETAIN = <boolean>
FALSE
SHOWINMACROPANEL =
<boolean>
TRUE
KEYSTROKE= <char>
Example:
Define a macro function that redraws the current frame n times when <Crtl>+M is
hit and then the R key is pressed, where n is passed to the macro function:
$!MACROFUNCTION
NAME = "ABC"
KEYSTROKE = "R"
$!LOOP |n|
$!REDRAW
129
$!ENDLOOP
$!ENDMACROFUNCTION
$!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.
Optional Parameters:
Parameter Syntax
Default
ALTDATALOADINSTRUCTIONS = Null
<string>
Notes
Specify alternate data load instructions.
Tecplot data files: This is a list of filenames to use as
replacements for data files referenced in the layout file.
Use " to enclose file names that contain spaces or the +
symbol. By default, separate file names listed in the
ALTDATALOADINSTRUCTIONS are assigned to
successive data sets that are referenced within a layout file.
If you have a data set that references multiple data files,
use the plus symbol, +, to group file names.
APPEND = <boolean>
FALSE
Examples:
Example 1: Open a new layout file called abc.lay and replace the data file referenced in the
layout file with t.plt:
$!OPENLAYOUT "abc.lay"
130
ALTDATALOADINSTRUCTIONS = "t.plt"
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:
Optional Parameters:
Parameter Syntax
Notes
BACKGROUNDCOLOR
= <color>
ISTRANSPARENT
= <boolean>
ORIENTPORTRAIT
= <boolean>
SHOWGRID
= <boolean>
SHOWPAPER
= <boolean>
SHOWRULER
= <boolean>
PAPERSIZE
= <papersize>
RULERSPACING = <paperrulerspacing>
PAPERGRIDSPACING = <papergridspacing>
PAPERSIZEINFO
{
LETTER
DOUBLE
A3
A4
CUSTOM1
CUSTOM2
}
REGIONINWORKAREA
Example:
<<papersize>>
<<papersize>>
<<papersize>>
<<papersize>>
<<papersize>>
<<papersize>>
<<rect>>
131
$!PAPER
SHOWGRID = NO
PAPERSIZE = CUSTOM1
PAPERSIZEINFO
{
CUSTOM1
{
WIDTH = 4
HEIGHT = 5
}
}
$!PAUSE
Syntax:
$!PAUSE <string>
[no parameters]
Description:
Example:
Pause and display the message This is the first example plot:
$!PAUSE "This is the first example plot."
The different commands in the PICK compound function family are described
separately in the following sections.
The PICK compound functions are:
$!PICK ADD
$!PICK ADDALL
$!PICK ADDALLINRECT
$!PICK CLEAR
$!PICK COPY
$!PICK CUT
132
$!PICK
$!PICK
$!PICK
$!PICK
$!PICK
$!PICK
$!PICK
EDIT
MAGNIFY
PASTE
POP
PUSH
SETMOUSEMODE
SHIFT
$!PICK ADD
Syntax:
$!PICK ADD
X = <dexp>
Y = <dexp>
[optional parameters]
Description:
Required Parameters:
Parameters Syntax
Notes
X = <dexp>
Y = <dexp>
Optional Parameters
Parameters Syntax
Default
Notes
COLLECTINGOBJECTS =
<boolean>
FALSE
DIGGINGFOROBJECTS =
<boolean>
FALSE
IGNOREZONEOBJECTS =
<boolean>
FALSE
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
133
$!PICK ADDALL
Syntax:
$!PICK ADDALL
[optional parameters]
Description:
Optional Parameters
Parameters Syntax
Default
Notes
SELECTTEXT = <boolean>
FALSE
SELECTGEOMS = <boolean>
FALSE
SELECTFRAMES = <boolean>
FALSE
SELECTMAPS = <boolean>
FALSE
SELECTZONES = <boolean>
FALSE
Example:
Add all text and geometries in the current frame to the list of picked objects:
$!PICK ADDALL
SELECTTEXT = TRUE
SELECTGEOMS = TRUE
$!PICK ADDALLINRECT
Syntax:
$!PICK ADDALLINRECT
X1 = <dexp>
Y1 = <dexp>
X2 = <dexp>
Y2 = <dexp>
[optional parameters]
Description:
134
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:
Parameters Syntax
Notes
X1 = <dexp>
Y1 = <dexp>
X2 = <dexp>
Y2 = <dexp>
Optional Parameters
Parameters Syntax
Default
Notes
SELECTTEXT = <boolean>
FALSE
SELECTGEOMS = <boolean>
FALSE
SELECTFRAMES = <boolean>
FALSE
SELECTSTREAMTRACES =
<boolean>
FALSE
SELECTMAPS = <boolean>
FALSE
SELECTZONES = <boolean>
FALSE
SELECTGRIDAREA =
<boolean>
FALSE
SELECTCONTOURLABELS =
<boolean>
FALSE
COLORFILTER = <color>
Not used.a
LINEPATTERNFILTER =
<linepattern>
Not used.a
FONTFILTER = <font>
Not used.a
GEOMFILTER = <geomtype>
Not used.
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
LINEPATTERNFILTER
GEOMFILTER
X1
Y1
=
=
=
=
=
TRUE
DASHED
CIRCLE
0
0
135
X2
Y2
= 3
= 5
$!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:
136
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:
Parameters Syntax
Notes
ARROWHEADANGLE = <dexp>
Angle is in degrees.
ARROWHEADSIZE = <dexp>
LINETHICKNESS = <dexp>
PATTERNLENGTH = <dexp>
SIZE = <dexp>
TEXTHEIGHTBYPERCENT = <dexp>
TEXTHEIGHTBYPOINTS = <dexp>
Value is in points.
ARROWHEADATTACHMENT =
<arrowheadattachment>
ARROWHEADSTYLE = <arrowheadstyle>
FONT = <font>
GEOMSHAPE = <geomshape>
LINEPATTERN = <linepattern>
OBJECTALIGN = <objectalign>
TEXTCOLOR = <color>
FILLCOLOR = <color>
COLOR = <color>
ASCIICHAR= <symbolchar>
MESH {SHOW = <boolean>}
137
Parameters Syntax
Notes
SHOWBORDER = <boolean>
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
138
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.
Example:
$!PICK MAGNIFY
MAG = 1.5
$!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
139
$!PICK SETMOUSEMODE
Syntax:
$!PICK SETMOUSEMODE
MOUSEMODE = <mousemode>
Description:
Required Parameter:
Parameter Syntax
Notes
MOUSEMODE = <mousemode>
Example:
$!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:
Parameters Syntax
140
Notes
X = <dexp>
Y = <dexp>
Optional Parameter:
Parameters Syntax
Default
Notes
POINTERSTYLE =
<pointerstyle>
ALLDIRECTIONS
Example:
Shift the currently picked objects 1 inch to the right and 2 inches down:
$!PICK SHIFT
X = 1
Y = 2
$!PLOTTYPE
Syntax:
$!PLOTTYPE <plottype>
[no parameters]
Description:
Required Parameters:
Parameter Syntax
PLOTTYPE
Example:
Notes
<plottype>
$!POLARAXIS
Syntax:
$!POLARAXIS
[optional parameters]
Description:
141
Optional Parameters:
Parameter Syntax
Notes
THETAMODE
= <thetamode>
THETAPERIOD
= <double>
GRIDAREA
<<areastyle>>
VIEWPORTPOSITION
<<rect>>
VIEWPORTSTYLE
<<areastyle>>
THETADETAIL
<<axisdetail>>
RDETAIL
<<axisdetail>>
PRECISEGRID
<<precisegrid>>
PRESERVEAXISSCALE
<boolean>
Example:
$!POLARTORECTANGULAR
Syntax:
$!POLARTORECTANGULAR <set>
[no parameters]
Description:
Example:
142
$!POLARVIEW
Syntax:
$!POLARVIEW
[optional parameters]
Description:
Required Parameters:
Parameter Syntax
<<rect>>
EXTENTS
Example:
Notes
View extents of transformed X & Y in polar plots.
Numbers listed are in the form of grid units.
Set the view of the polar plot to view the full extents
of the plot area.
$!POLARVIEW
EXTENTS
{
X1=10
Y1=10
X2=90
Y2=90
}
$!PRINT
Syntax:
[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:
143
$!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:
Parameter Syntax
= <string>
PRECISION
<op> <integer>
SENDPRINTTOFILE
= <boolean>
NUMHARDCOPYCOPIES
<op> <integer>
LARGEPAPEROK
= <boolean>
DRIVER
= <printerdriver>
PALETTE
= <palette>
PENSPEED
<op> <integer>
PLOTTERUNITSPERINCH
<op> <dexp>
JOBCONTROL
{
HPGLMOPUPSTR
HPGL2MOPUPSTR
POSTMOPUPSTR
LGMOPUPSTR
HPGLSETUPSTR
HPGL2SETUPSTR
POSTSETUPSTR
LGSETUPSTR
}
SPOOLER
{
HPGL2MONOSPOOLCMD
HPGL2COLORSPOOLCMD
HPGLSPOOLCMD
PSMONOSPOOLCMD
PSCOLORSPOOLCMD
LGSPOOLCMD
}
144
Notes
PRINTFNAME
=
=
=
=
=
=
=
=
=
=
=
=
=
=
<string>
<string>
<string>
<string>
<string>
<string>
<string>
<string>
<string>
<string>
<string>
<string>
<string>
<string>
Parameter Syntax
Notes
PLOTTERPENMAP
<<plotterpenmap>>
USEISOLATIN1FONTSINPS
= <boolean>
FORCEEXTRA3DSORTING
= <boolean>
NUMLIGHTSOURCESHADES = <integer>
IMAGERESOLUTION
= <integer>
PRINTRENDERTYPE
= <printrendertype>
RGBLEGENDOUTPUTRESOL = <integer>
UTION
Example:
$!PRINTSETUP
SENDPRINTTOFILE = FALSE
DRIVER = PS
PALETTE = MONOCHROME
SPOOLER
{
PSMONOSPOOLCMD = "lpr @"
}
$!PROMPTFORFILENAME
Syntax:
$!PROMPTFORFILENAME
DIALOGTITLE
<macrovar>
= <string>
DEFAULTFNAME = <string>
FILEFILTER
Description:
= <string>
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).
145
Optional Parameter:
Parameter Syntax
Default
Notes
DIALOGTITLE = <string>
Null
DEFAULTFNAME = <string>
Null
FILEFILTER = <string>
Null
FILEMUSTEXIST = <string>
TRUE
Example:
# UNIX
# DOS
$!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:
Parameter Syntax
Default
146
Notes
Include text at the top of the dialog to instruct the user
regarding the value to enter. In Windows, this is limited to
three lines of text.
Example:
$!PROMPTFORTEXTSTRING |timestring|
INSTRUCTIONS = "Enter the time of the experiment"
$!PROMPTFORYESNO
Syntax:
$!PROMPTFORYESNO
<macrovar>
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:
Parameter Syntax
Default
Example:
Notes
Include text at the top of the dialog with instructions.
$!PROMPTFORYESNO |goforit|
INSTRUCTIONS = "Do you want to go for it?"
$!IF "|goforit|" == "YES"
... code that goes for it....
$!ENDIF
$!PROPAGATELINKING
Syntax:
$!PROPAGATELINKING
[optional parameters]
Description: Link multiple frames, ether within frame or between frames.
147
Optional Parameter:
Parameter Syntax
Notes
LINKTYPE
= WITHINFRAME
or
BETWEENFRAMES
FRAMECOLLECTION
= ALL
or PICKED
Example:
$!PROPAGATELINKING
LINKTYPE = BETWEENFRAMES
FRAMECOLLECTION = ALL
$!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.
Optional Parameter:
Parameter Syntax
Default
Notes
INCLUDELAYOUTPACKAGE = <boolean>
No
IMAGESELECTION = <imagestyle>
ONEPERFRAME
Example:
$!PUBLISH "C:\TEC100\separate.html"
INCLUDELAYOUTPACKAGE = NO
IMAGESELECTION = ONEPERFRAME
$!QUIT
148
Syntax:
$!QUIT
Description:
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:
Parameter Syntax
Notes
<colormaprawdata>
Example:
Assign the Raw user-defined color map to a gray scale using 11 colors:
$!RAWCOLORMAP
RAWDATA
11
0
25
50
75
100
125
150
175
200
225
255
0
25
50
75
100
125
150
175
200
225
255
0
25
50
75
100
125
150
175
200
225
255
$!READDATASET
Syntax:
$!READDATASET <string>
[optional parameters]
Description:
Read one or more data files into Tecplot to form a new data set.
149
Optional Parameters:
Parameters Syntax
IJKSKIP
{
I = <integer>
J = <integer>
K = <integer>
}
Default
Notes
Use values greater than 1 to skip data points.
1
1
1
RESETSTYLE = <boolean>
TRUE
INCLUDETEXT = <boolean>
TRUE
INCLUDEGEOM = <boolean>
TRUE
INCLUDECUSTOMLABELS =
<boolean>
TRUE
INCLUDEDATA = <boolean>
TRUE
INITIALPLOTFIRSTZONEONLY =
<boolean>
Allows faster performance for files with multiple
zones.
INITIALPLOTTYPE = <plottype>
150
DATASETREADER = <string>
None.
VARLOADMODE = <varloadmode>
BYPOSITION
VARNAMELIST = <string>
None.
VARPOSITIONLIST = <set>
All vars.
ZONELIST = <set>
All zones.
READDATAOPTION =
<readdataoption>
NEW
COLLAPSEZONESANDVARS =
<boolean>
FALSE
Examples:
Example 1: Read in the data files t1.plt and t2.plt to form a single data set in Tecplot:
$!READDATASET
"t1.plt t2.plt"
Example 2: Read in the datafile t1.plt. Only read in zones 1 and 4. Skip over every other Iindex:
$!READDATASET "t1.plt"
ZONELIST = [1,4]
IJKSKIP
{
I = 2
}
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:
Parameters Syntax
Default
Notes
INCLUDETEXT = <boolean>
TRUE
INCLUDEGEOM = <boolean>
TRUE
INCLUDEPLOTSTYLE = <boolean>
TRUE
INCLUDESTREAMPOSITIONS =
<boolean>
TRUE
151
Parameters Syntax
Default
Notes
INCLUDEFRAMESIZEANDPOSITION = FALSE
<boolean>
MERGE = <boolean>
FALSE
INCLUDECONTOURLEVELS =
<boolean>
TRUE
INCLUDEAUXDATA= <boolean>
TRUE
Example:
Read the stylesheet file t.sty. Do not read in any text or geometries:
$!READSTYLESHEET
INCLUDETEXT
INCLUDEGEOM
"t.sty"
= FALSE
= FALSE
$!REDRAW
Syntax:
$!REDRAW
[optional parameters]
Description:
Optional Parameter:
Parameter Syntax
Default
Example:
Notes
Set to FALSE to draw only a trace of the data in the
frame.
$!REDRAW
$!REDRAWALL
Syntax:
$!REDRAWALL
[optional parameters]
Description:
152
Optional Parameter:
Parameter Syntax
Default
Example:
Notes
Set to FALSE to draw only a trace of the data in each
frame.
$!REDRAWALL
$!REMOVEVAR
Syntax:
$!REMOVEVAR <macrouserdefvar>
Description:
Remove a user-defined macro variable. This frees up space so another userdefined macro variable can be defined.
Example:
$!RENAMEDATASETVAR
Syntax:
$!RENAMEDATASETVAR
VAR
= <integer>
NAME = <string>
Required Parameters:
Parameter Syntax
Notes
VAR = <integer>
NAME = <string>
Example:
153
$!RENAMEDATASETZONE
Syntax:
$!RENAMEDATASETZONE
ZONE = <integer>
NAME = <string>
Required Parameters:
Parameter Syntax
Notes
ZONE = <integer>
NAME = <string>
Example:
$!RESET3DAXES
Syntax:
$!RESET3DAXES
[no parameters]
Description:
Example:
$!RESET3DAXES
$!RESET3DORIGIN
Syntax:
$!RESET3DORIGIN
[optional parameters]
Description:
154
Optional Parameter:
Parameter Syntax
ORIGINRESETLOCATION
Example:
Notes
= <originresetlocation>
$!RESET3DORIGIN
ORIGINRESETLOCATION = DATACENTER
$!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:
155
Required Parameter:
Parameter Syntax
Notes
ANGLE = <dexp>
Optional Parameters:
Parameter Syntax
Default
ZONELIST = <set>
All zones.
Zones to rotate.
X = <dexp>
Y = <dexp>
Example:
Notes
$!ROTATE3DVIEW
Syntax:
$!ROTATE3DVIEW <rotateaxis>
ANGLE = <dexp>
[optional parameters]
Description:
Required Parameter:
Parameter Syntax
Notes
ANGLE = <dexp>
Optional Parameter:
Parameter Syntax
156
Notes
ROTATEORIGINLOCATION
= <rotateoriginlocation>
VECTORX
= <dexp>
Parameter Syntax
Notes
VECTORY
= <dexp>
VECTORZ
= <dexp>
Example:
$!ROTATE3DVIEW PSI
ANGLE = 10
$!RUNMACROFUNCTION
Syntax:
Description:
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:
Parameters Syntax
Default
Notes
INCLUDEDATA = <boolean>
FALSE
INCLUDEPREVIEW = <boolean>
TRUE
157
Example:
$!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
$!SETAUXDATA
Syntax:
$!SETAUXDATA
AUXDATALOCATION
= [zone/var/dataset/frame/linemap]
<string>
VALUESTRING = <string>
[optional parameters]
NAME =
Description:
Add Auxilary 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 bu one or
more underscore, period, letter, or digit characters.
Required Parameters:
Parameter Syntax
158
Notes
AUXDATALOCATION
= zone/dataset/frame
NAME
= <string>
VALUESTRING
= <string>
Optional Parameters:
Parameter Syntax
Notes
ZONE
= <integer>
VAR
= <integer>
MAP
= <integer>
Example:
$!SETDATASETTITLE
Syntax:
$!SETDATASETTITLE <string>
Example:
$!SETFIELDVALUE
Syntax:
$!SETFIELDVALUE
ZONE
= <integer>
VAR
= <integer>
INDEX
= <integer>
FIELDVALUE = <dexp>
AUTOBRANCH
= <boolean>
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.
159
Required Parameters:
Parameters Syntax
Notes
ZONE = <integer>
VAR = <integer>
FIELDVALUE = <dexp>
AUTOBRANCH = <boolean>
INDEX = <integer>
Example:
A data set contains 2 zones and 3 variables. Zone 2 is dimensioned 5 by 3. Set the
value for variable 3 at I-, J-location 2, 2 to be 37.5:
$!SETFIELDVALUE
ZONE
=
VAR
=
INDEX
=
FIELDVALUE =
2
3
7
37.5
AUTOBRANCH = TRUE
$!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
160
$!SHARECONNECTIVITY
Syntax:
$!SHARECONNECTIVITY
SOURCEZONE
= <integer>
= <integer>
[no optional parameters]
DESTINATIONZONE
Description:
Required Parameters:
Parameter Syntax
Notes
SOURCEZONE
= <integer>
DESTINATIONZONE
= <integer>
Example:
Shares the conectivity of the second zone with the sixth zone.:
$!SHARECONNECTIVITY
SOURCEZONE = 2
DESTINATIONZONE = 6
$!SHAREFIELDDATAVAR
Syntax:
$!SHAREFIELDDATAVAR
SOURCEZONE = <integer>
VAR = <integer>
DESTINATIONZONE = <integer>
Allows sharing of the specified variable from the soure 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.
161
Required Parameters:
Parameter Syntax
Notes
SOURCEZONE
= <integer>
VAR
= <integer>
DESTINATIONZONE
= <integer>
Example:
Shares the third variable from the second zone, with the fifth zone:
$!SHAREFIELDDATAVAR
SOURCEZONE = 2
VAR
= 3
DESTINATIONZONE = 5
$!SHIFTLINEMAPSTOBOTTOM
Syntax:
$!SHIFTLINEMAPSTOBOTTOM <set>
[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:
$!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:
162
$!SHOWMOUSEPOINTER
Syntax:
$!SHOWMOUSEPOINTER <boolean>
[optional parameters]
Description:
The mouse icon may be deactived 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]
Description:
A SetValue command that assigns attributes for axes in a sketch mode frame.
Axes are rarely used in sketch frames.
Optional Parameters:
Parameter Syntax
DEPXTOYRATIO
Notes
<op> <dexp>
AXISMODE
= <axismode>
GRIDAREASTYLE
<<gridarea>>
XDETAIL
<<axisdetail>>
YDETAIL
<<axisdetail>>
PRECISEGRID
<<precisegrid>>
VIEWPORTTOPSNAPTARGE = <integer>
T
Default = 100
VIEWPORTTOPSNAPTOLER = <integer>
ANCE
Default = 10
163
Parameter Syntax
Notes
PRESERVEAXISSCALEWHE = <boolean>
NRANGEISCHANGED
AUTOADJUSTRANGESTONI = <boolean>
CEVALEUS
VIEWPORTPOSITION
<<rect>>
VIEWPORTNICEFITBUFFE = <double>
R
Example:
Change the axis mode to be INDEPENDENT for sketch mode in the current
frame:
$!SKETCHAXIS
AXISMODE = INDEPENDENT
$!SMOOTH
Syntax:
$!SMOOTH
ZONE = <set>
VAR = <set>
[optional parameters]
Description:
Smooth data (reduce the spikes) for selected variables in selected zones.
Required Parameters:
Parameter Syntax
Notes
ZONE = <set>
Zones to smooth.
VAR = <set>
Optional Parameters:
164
Parameter Syntax
Default
NUMSMOOTHPASSES = <integer>
SMOOTHWEIGHT = <dexp>
0.8
SMOOTHBNDRYCOND =
<boundarycondition>
FIXED
Notes
Example:
$!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:
Parameters Syntax
NUMPTS
= <integer>
Default
Notes
STREAMTYPE = <streamtype>
DIRECTION = <streamdirection>
FORWARD
165
Parameters Syntax
STARTPOS
{
X = <dexp>
Y = <dexp>
Z = <dexp>
}
Default
Notes
Z is necessary only if dealing with a 3-D
streamtrace.
0.0
0.0
0.0
This is required if NUMPTS is greater than 1 or if
the streamtype is a volume rod or volume ribbon.
ALTSTARTPOS
{
X = <dexp>
Y = <dexp>
Z = <dexp>
}
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
166
Z = 8.0
}
$!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:
Optional Parameters:
Parameters Syntax
Default
RANGESTART = <integer>
= <integer>
RANGEEND
Example:
Notes
$!STREAMTRACE RESETDELTATIME
Syntax:
$!STREAMTRACE RESETDELTATIME
167
[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
<xyrawdata>
Description:
Required Parameter:
Parameters Syntax
Notes
<xyrawdata>
Example:
$!SYSTEM
Syntax:
$!SYSTEM <string>
[optional parameters]
Description:
Example:
168
Submit the system command to copy the file t7.plt to xxx.plt (UNIX):
Optional Parameters:
Parameter Syntax
Default
Notes
WAIT = <boolean>
TRUE
$!THREEDAXIS
Syntax:
$!THREEDAXIS
[optional parameters]
Description:
Optional Parameters:
Parameter Syntax
Notes
XYDEPXTOYRATIO
<op> <dexp>
DEPXTOYRATIO
<op> <dexp>
DEPXTOZRATIO
<op> <dexp>
AXISMODE
= <axismode>
ASPECTRATIOLIMIT
<op> <dexp>
ASPECTRATIORESET
<op> <dexp>
BOXASPECTRATIOLIMIT
<op> <dexp>
BOXASPECTRATIORESET
<op> <dexp>
Set aspect ratio for the axis box to this value when
ASPECTRATIOLIMIT is exceeded.
EDGEAUTORESET
= <boolean>
FRAMEAXIS
{
SHOW
SIZE
LINETHICKNESS
COLOR
XYPOS
}
= <boolean>
<op> <dexp>
<op> <dexp>
= <color>
<<xy>>
GRIDAREA
<<gridarea>>
XDETAIL
<<axisdetail>>
YDETAIL
<<axisdetail>>
169
Parameter Syntax
Notes
<<axisdetail>>
ZDETAIL
PRESERVEAXISSCALEWHE = <boolean>
NRANGEISCHANGED
Example:
$!THREEDAXIS
ZVAR = 2
EDGEAUTORESET = FALSE
YEDGE = 2
$!THREEDVIEW
Syntax:
$!THREEDVIEW
[optional parameters]
Description:
A SetValue command that changes global attributes associated with the 3-D view.
Optional Parameters:
Parameter Syntax
DRAWINPERSPECTIVE
= <boolean>
PSIANGLE
<op> <dexp>
Angle is in degrees.
THETAANGLE
<op> <dexp>
Angle is in degrees.
ALPHAANGLE
<op> <dexp>
Angle is in degrees.
FIELDOFVIEW
<op> <dexp>
VIEWWIDTH
<op> <dexp>
VIEWERPOSITION
<<xyz>>
Example:
170
Notes
Switches to perspective.
Changes the field of view.
Rotates around psi by 20 degrees..
$!THREEDVIEW
DRAWNINPERSPECTIVE = YES
FIELDOFVIEW = 100
PSIANGLE += 20
VIEWERPOSITION
{
X = 1.26
Y = 1.25
Z = 0.74
}
$!TRANSFORMCOORDINATES
Syntax:
$!TRANSFORMCOORDINATES
TRANSFORMATION=<transformation>
[optional parameters]
Description:
Transforms all points in one or more zones from one coordinate system to
another.
Required Parameter
Parameters Syntax
Notes
TRANSFORMATION =
<transformation>
Transformation.
Optional Parameters:
Parameter Syntax
Default
Notes
CREATENEWVARIABLES =
<boolean>
FALSE
THETAVAR = <integer>
NONE
171
Parameter Syntax
Default
Notes
RVAR = <integer>
PSIVAR = <integer>
XVAR = <integer>
YVAR = <integer>
ZVAR = <integer>
ANGLESPEC = <anglespec>
RADIANS
ZONESET = <set>
all zones
Example:
$!TRIANGULATE
Syntax:
$!TRIANGULATE
[optional parameters]
Description:
172
Create a new zone by forming triangles from data points in existing zones.
Optional Parameters:
Parameters Syntax
Default
SOURCEZONES
= <set>
All zones.
USEBOUNDARY
= <boolean>
FALSE
Notes
Specify one or more I-ordered zones that define
boundaries across which no triangles can be created.
BOUNDARYZONES = <set>
TRIANGLEKEEPFACTOR = <dexp>
Example:
0.25
= [1,2]
$!TWODAXIS
Syntax:
$!TWODAXIS
[optional parameters]
Description:
Optional Parameters:
Parameter Syntax
Notes
DEPXTOYRATIO
<op> <dexp>
AXISMODE
= <axismode>
GRIDAREA
<<gridarea>>
XDETAIL
<<axisdetail>>
YDETAIL
<<axisdetail>>
PRECISEGRID
<<precisegrid>>
VIEWPORTTOPSNAPTARGET
= <integer>
VIEWPORTTOPSNAPTOLERANC = <integer>
E
VIEWPORTPOSTITION
<<rect>>
VIEWPORTNICEFITBUFFER
= <double>
Default = 100
Default = 10
173
Parameter Syntax
Notes
AUTOADJUSTRANGESTONICEV = <boolean>
ALUES
PRESERVEAXISSCALEWHENRA = <boolean>
NGEISCHANGED
Example:
$!VARSET
Syntax:
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|)
174
The different commands in the VIEW compound function family are described
separately in the following sections.
The VIEW compound function family is:
$!VIEW AXISFIT
$!VIEW AXISMAKECURRENTVALUESNICE
$!VIEW AXISNICEFIT
$!VIEW CENTER
$!VIEW COPY
$!VIEW DATAFIT
$!VIEW FIT
$!VIEW LAST
$!VIEW MAKECURRENTVIEWNICE
$!VIEW NICEFIT
$!VIEW PASTE
$!VIEW PUSH
$!VIEW RESETTOENTIRECIRCLE
$!VIEW SETMAGNIFICATION
$!VIEW TRANSLATE
$!VIEW ZOOM
$!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:
Parameters Syntax
Default
Notes
AXIS = <xyaxis>
AXISNUM = <integer>
175
Example:
Reset the range on the Y-axis to fit the data being plotted:
$!VIEW AXISFIT
AXIS = Y
$!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:
Parameters Syntax
Default
Notes
AXIS = <xyaxis>
AXISNUM = <integer>
Example:
Set the range on the Z-axis to have nice values for the axis labels :
$!VIEW AXISMAKECURRENTAXISVALUESNICE
AXIS = Z
$!VIEW AXISNICEFIT
Syntax:
$!VIEW AXISNICEFIT
[optional parameters]
Description:
176
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:
Parameters Syntax
Default
Notes
AXIS = <xyaxis>
AXISNUM = <integer>
Example:
Reset the range on the Y-axis to fit the data being plotted, with nice values on the
axis-line:
$!VIEW AXISNICEFIT
AXIS = Y
$!VIEW CENTER
Syntax:
$!VIEW CENTER
[no parameters]
Description:
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
177
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.
Example:
$!VIEW LAST
$!VIEW MAKECURRENTVIEWNICE
Syntax:
$!VIEW MAKECURRENTVIEWNICE
[no parameters]
178
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.
Example:
$!VIEW PUSH
179
$!VIEW RESETTOENTIRECIRCLE
Syntax:
$!VIEW RESETTOENTIRECIRCLE
[no parameters]
Description:
Reset the Theta-R Axis to inital 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:
Parameters Syntax
Notes
MAGNIFICATION = <dexp>
Example:
Make the plot to be drawn one-half as big as when it fits within the grid area:
$!VIEW SETMAGNIFICATION
MAGNIFICATION = 0.5
$!VIEW TRANSLATE
Syntax:
$!VIEW TRANSLATE
X = <dexp>
Y = <dexp>
180
Shift the data being plotted in the X- and/or Y-direction. The amount translated is
in frame units.
Required Parameters
Parameters Syntax
Default
Notes
X = <dexp>
0.0
Y = <dexp>
0.0
Example:
$!VIEW ZOOM
Syntax:
$!VIEW ZOOM
X1 = <dexp>
Y1 = <dexp>
X2 = <dexp>
Y2 = <dexp>
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:
Parameters Syntax
Notes
X1 = <dexp>
Y1 = <dexp>
X2 = <dexp>
Y2 = <dexp>
Example:
Zoom so the rectangular region with corners at (1, 0) and (7, 9) are in view:
$!VIEW ZOOM
X1 = 1
Y1 = 0
181
X2 = 7
Y2 = 9
$!WHILE...$!ENDWHILE
Syntax:
$!WHILE <conditionalexp>
.
.
.
$!ENDWHILE
Description:
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
182
$!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
$!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:
Example:
$!WORKSPACEVIEW LASTVIEW
183
$!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>
Shift the view of the workspace. This has no effect on the local view within any
frame in your layout.
Required Parameters:
Parameters Syntax
Default
Notes
= <dexp>
Value is in inches.
= <dexp>
Value is in inches.
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]
184
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>
Change the view into the work area. This has no effect on the local view within
any frame in your layout.
Required Parameters:
Parameters Syntax
Notes
X1 = <dexp>
Y1 = <dexp>
X2 = <dexp>
Y2 = <dexp>
Example:
Make the region in the lower left corner of an 8.5 by 11 paper be viewable in the
work area. The paper is in portrait orientation:
$!WORKSPACEVIEW ZOOM
X1 = 0
Y1 = 5.5
X2 = 4.25
Y2 = 9.75
$!WRITECOLORMAP
Syntax:
$!WRITECOLORMAP <string>
[no parameters]
185
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:
Parameter Syntax
Notes
SOURCEMAP = <integer>
Optional Parameter:
Parameters Syntax
Default
Notes
CURVEINFOMODE =
<curveinfomode>
CURVE
DETAILS
Example:
$!WRITEDATASET
Syntax:
$!WRITEDATASET <string>
[optional parameters]
Description:
186
Write the data set attached to the current frame to a file. The <string> is the
name of the file to write to.
Optional Parameters:
Parameters Syntax
Default
INCLUDETEXT = <boolean>
TRUE
INCLUDEGEOM = <boolean>
TRUE
INCLUDECUSTOMLABELS =
<boolean>
TRUE
INCLUDEDATA = <boolean>
TRUE
Notes
INCLUDEDATASHARELINKAGE
FALSE
INCLUDEAUTOGENFACENEIGHBORS
FALSE
ASSOCIATELAYOUTWITHDATAFILE
TRUE
VARPOSITIONLIST = <set>
All vars.
ZONELIST = <set>
All zones.
BINARY = <boolean>
TRUE
PRECISION = <integer>
12
USEPOINTFORMAT = <boolean>
FALSE
Example:
$!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.
187
Optional Parameters:
Parameters Syntax
Default
INCLUDECONTOURLEVELS =
<boolean>
TRUE
INCLUDETEXT = <boolean>
TRUE
INCLUDEGEOM = <boolean>
TRUE
INCLUDEPLOTSTYLE = <boolean>
TRUE
INCLUDESTREAMPOSITIONS =
<boolean>
TRUE
INCLUDEFACTORYDEFAULTS =
<boolean>
FALSE
Notes
USERELATIVEPATHS = <boolean>
INCLUDEAUXDATA = <boolean>
Example:
TRUE
$!XYLINEAXIS
Syntax:
$!XYLINEAXIS
[optional parameters]
Description:
Optional Parameters:
Parameter Syntax
188
Notes
DEPXTOYRATIO
<op> <dexp>
AXISMODE
= <axismode>
Set to INDEPENDENT or
XYDEPENDENT.
GRIDAREA
<<gridarea>>
XDETAIL
Parameter Syntax
Notes
YDETAIL
PRECISEGRID
<<precisegrid>>
VIEWPORTTOPSNAPTARGET
= <integer>
Default = 100
VIEWPORTTOPSNAPTOLERANC
E
= <integer>
Default = 10
VIEWPORTNICEFITBUFFER
= <double>
AUTOADJUSTRANGESTONICEV
ALUES
= <boolean>
PRESERVEAXISSCALE
= <boolean>
Example:
Set the axis mode to be independent for the XY-axes (note that this affects only
X1 versus Y1):
$!XYLINEAXIS
AXISMODE = INDEPENDENT
189
190
CHAPTER 6
Parameter Subcommands
This chapter details secondary or common macro parameter subcommands in Tecplot. These
subcommands provide a means to access the lower level variables of commands defined in
the previous 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 7, Parameter Assignment
Values, Expressions, and Arithmetic and Logical Operators.
<<anchorpos>>
Description:
Expands to:
Syntax
Notes
{
X
Y
Z
THETA
R
=
=
=
=
=
<double>
<double>
<double>
<double>
<double>
Example:
189
ANCHORPOS
{
X = 2.89124668435
Y = 88.7359084881
}
RAWDATA
5.23430593312
<<areastyle>>
Description:
Expands to:
Syntax
Notes
{
DRAWGRIDLAST
DRAWBORDER
LINETHICKNESS
COLOR
ISFILLED
FILLCOLOR
USELIGHTSOURCETOFILL
= <boolean>
= <boolean>
<op> <dexp>
= <color>
= <boolean>
= <color>
= <boolean>
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:
190
Expands to:
Syntax
Notes
{
SHOWAXIS
AUTOGRID
ISREVERSED
GRANCHOR
GRSPACING
RANGEMIN
RANGEMAX
COORDSCALE
CLIPDATA
VALUEATORIGIN
VARNUM
TICKLABEL
GRIDLINES
MINORGRIDLINES
TICKS
TITLE
AXISLINE
}
Example:
= <boolean>
= <boolean>
= <boolean>
= <double>
= <double>
= <double>
= <double>
= <coordscale>
= <boolean>
= <double>
= <integer>
<<ticklabeldetail>>
<<gridlinedetails>>
<<gridlinedetails>>
<<tickmarkdetail>>
<<axistitle>>
<<axisline>>
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:
191
Expands to:
Syntax
Notes
{
SHOW
SHOWBOTHDIRECTIONS
SHOWPERPENDICULAR
SHOWOPPOSITEEDGE
COLOR
LINETHICKNESS
ALIGNMENT
OPPOSINGAXISVALUE
POSITION
ANGLE
OFFSET
EDGE
}
Example:
= <boolean>
= <boolean>
= <boolean>
= <boolean>
= <color>
= <double>
= <axisalignment>
= <double>
= <double>
= <double>
= <double>
= <integer>
Change the thickness of the Theta-axis line to 0.8 and the color to red.:
$!POLARAXIS THETADETAIL{AXISLINE{COLOR = RED}}
$!POLARAXIS THETADETAIL{AXISLINE{LINETHICKNESS = 0.8}}
<<axistitle>>
Description:
192
Expands to:
Syntax
Notes
SHOWONAXISLINE
SHOWONGRIDBORDERMIN
SHOWONGRIDBORDERMAX
SHOWONOPPOSITEEDGE
SHOWONALLAXES
SHOWONVIEWPORTTOP
SHOWONVIEWPORTBOTTOM
SHOWONVIEWPORTLEFT
SHOWONVIEWPORTRIGHT
TITLEMODE
TEXT
COLOR
TEXTSHAPE
OFFSET
PERCENTALONGLINE
}
Example:
= <boolean>
= <boolean>
= <boolean>
= <boolean>
= <boolean>
= <boolean>
= <boolean>
= <boolean>
= <boolean>
= <titlemode>
= <string>
= <color>
= <<textshape>>
= <double>
= <double>
Default = TRUE
Non-3D only. Default = FALSE
Non-3D only. Default = FALSE
3D only. Default = FALSE
Polar R only. Default = TRUE
Polar only. Default = TRUE
Polar only. Default = TRUE
Polar only. Default = TRUE
Polar only. Default = TRUE
Default = 50%
Create a R-axis title, saying Harmonic Motion in red, times, size 6 font.:
$!POLARAXIS
$!POLARAXIS
$!POLARAXIS
$!POLARAXIS
$!POLARAXIS
<<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.
193
Expands to:
Syntax
{
TINY
SMALL
MEDIUM
LARGE
HUGE
Notes
<op>
<op>
<op>
<op>
<op>
<dexp>
<dexp>
<dexp>
<dexp>
<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
{
COLORMAPFRACTION
LEADRGB
TRAILRGB
}
}
Example:
194
<integer>
<op> <dexp>
<<rgb>>
<<rgb>>
Positions the control point; 0 sets the position to the lowest index and 1 to the highest index in the color map.
Change the lead RGB values for control point 2 in the small rainbow color map to
be 100, 0, 0:
$!COLORMAP
SMRAINBOW
{
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
{
INCLUDE
COLOR
STARTLEVEL
ENDLEVEL
Notes
= <boolean>
= <color>
<op> <integer>
<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
195
}
}
<<continuouscolor>>
Description:
Expands to:
Syntax
CMIN
CMAX
Example:
Notes
= <boolean>
= <boolean>
<<gridlinedetail>>
Description:
196
Expands to:
Syntax
Notes
{
SHOW
LINEPATTERN
PATTERNLENGTH
LINETHICKNESS
CUTTOFF
}
Example:
= <boolean>
= <linepattern>
<op> <dexp>
<op> <dexp>
= <double>
Theta only.
Set the line pattern for minor gridlines for the X-axis in a 3-D plot to be dashed:
$!THREEDAXIS
XDETAIL
{
MINORGRIDLINES
{
LINEPATTERN = DASHED
}
}
<<ijk>>
Description:
Expands to:
Syntax
Notes
{
I
J
K
<op> <integer>
<op> <integer>
<op> <integer>
Example:
Set the I- and J-index skip for vectors to 2 for all zones:
$!FIELD
VECTOR
{
IJKSKIP
{
197
I = 2
J = 2
}
}
<<indexrange>>
Description:
Expands to:
Syntax
Notes
{
MIN
MAX
SKIP
<op> <integer>
<op> <integer>
<op> <integer>
Example:
Change the plot so the data set shows I-planes 3, 5, and 7 for zones 1 to 3:
$!FIELD [1-3]
SURFACES
{
SURFACESTOPLOT = IPLANES
IRANGE
{
MIN = 3
MAX = 7
SKIP = 2
}
}
<<dialogplacement>>
Description:
198
Expands to:
Syntax
Notes
{
ANCHORALIGNMENT
ANCHORHORIZONTALINSIDE
ANCHORVERTICALINSIDE
MINVISIBILITYPERCENTAGE
XOFFSET
YOFFSET
PLACEATANCHOR
}
= <anchoralignment>
= <boolean>
= <boolean>
= <integer>
= <integer>
= <integer>
= <placeatanchor>
XOFFSET and YOFFSET are in pixels. They may be negative, but will
be truncated to the bounding rectangle of the Tecplot main window.
ANCHORHORIZONTALINSIDE
and ANCHORVERTICALINSIDE
control how the dialog window is
anchored in both the horizontal and
vertical directions relative to the Tecplot main window. 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.
PLACEATANCHOR 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 Tecplots
bottom-right corner:
$!INTERFACE
DIALOGPLACEMENT
{
COLORMAPDIALOG
{
ANCHORALIGNMENT = BOTTOMRIGHT
XOFFSET = 10
YOFFSET = 10
PLACEATANCHOR = ALWAYS
}
}
199
<<numberformat>>
Description:
Expands to:
Syntax
Notes
{
FORMATTING
CUSTOMLABEL
PRECISION
SHOWDECIMALSONWHOLENUMBERS
REMOVELEADINGZEROS
SHOWNEGATIVESIGN
POSITIVEPREFIX
POSITIVESUFFIX
NEGATIVEPREFIX
NEGATIVESUFFIX
ZEROPREFIX
ZEROSUFFIX
= <valueformat>
= <integer>
<op> <integer>
= <boolean>
= <boolean>
= <boolean>
= <string>
= <string>
= <string>
= <string>
= <string>
= <string>
Default = FALSE
Default = FALSE
Default = TRUE
Example:
Set the number format for axis labels on the X-axis in a 2-D field plot to use the
float format with a precision of 3, and add the phrase DAYS WITHOUT
RAIN after every positive value:
$!TWODAXIS
XDETAIL
{
TICKLABEL
{
NUMFORMAT
{
FORMATTING = FIXEDFLOAT
PRECISION = 3
POSITIVESUFFIX = DAYS WITHOUT RAIN
}
}
}
<<papersize>>
Description:
200
Expands to:
Syntax
Notes
All values are in inches.
{
WIDTH
HEIGHT
LEFTHARDCLIPOFFSET
RIGHTHARDCLIPOFFSET
TOPHARDCLIPOFFSET
BOTTOMHARDCLIPOFFSET
<op> <dexp>
<op> <dexp>
<op> <dexp>
<op> <dexp>
<op> <dexp>
<op> <dexp>
Example:
Change the left hardclip offset for LETTER size paper to be 0.25 inches:
$!PAPER
PAPERSIZEINFO
{
LETTER
{
LEFTHARDCLIPOFFSET = 0.25
}
}
<<plotterpenmap>>
Description:
Assign plotter pens to objects or colors for hardcopy output to pen plotters. Some
objects are assigned a pen regardless of their color. All other objects are assigned
a pen based on their color.
201
Expands to:
Syntax
Notes
Factory default for all objects is to use pen1.
{
BLACKPEN
REDPEN
GREENPEN
BLUEPEN
CYANPEN
YELLOWPEN
PURPLEPEN
WHITEPEN
CUSTOM1PEN
CUSTOM2PEN
CUSTOM3PEN
CUSTOM4PEN
CUSTOM5PEN
CUSTOM6PEN
CUSTOM7PEN
CUSTOM8PEN
AXISPEN
MAJGRIDLINEPEN
MINGRIDLINEPEN
STREAMLINEPEN
MULTICOLORLINEPEN
BOUNDARYPEN
LABELPEN
= <integer>
= <integer>
= <integer>
= <integer>
= <integer>
= <integer>
= <integer>
= <integer>
= <integer>
= <integer>
= <integer>
= <integer>
= <integer>
= <integer>
= <integer>
= <integer>
= <integer>
= <integer>
= <integer>
= <integer>
= <integer>
= <integer>
= <integer>
Example:
<<precisegrid>>
Description:
202
Expands to:
Syntax
Notes
{
INCLUDE
COLOR
SIZE
= <boolean>
= <color>
= <double>
Size is in centimeters.
Example:
<<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
Y1
X2
Y2
<op> <dexp>
<op> <dexp>
<op> <dexp>
<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
203
}
}
<<refscatsymbol>>
Description:
Expands to:
Syntax
Notes
{
SHOW
COLOR
LINETHICKNESS
ISFILLED
FILLCOLOR
MAGNITUDE
XYPOS
SYMBOLSHAPE
= <boolean>
= <color>
= <dexp>
= <boolean>
= <color>
= <dexp>
<<xy>>
<<symbolshape>>
Example:
<<renderconfig>>
Description:
204
Expands to:
Syntax
Notes
{
= <double>
= <stipplemode> If thin patterned lines are not drawn correctly,
set STIPPLEALLLINES to ALL.
For low memory graphics cards, the depth
= <integer>
DEPTHBUFFERSIZE
buffer size may need to be reduced.
Specify the minimum number of bits used for
= <integer>
MINBITSPERRGBPLANE
each of the planes in the image buffer.
Sometimes the last pixel for stroked font char= <boolean>
DOEXTRADRAWFORLASTPIXEL
acters is not drawn If so, turn DOEXTRADRAWFORLASTPIXEL on.
Some graphics cards have problems with long
= <integer>
MAXSTRIPLENGTH
strips. Use MAXSTRIPLENGTH to reduce the
strip length.
Some graphics cards have problems with large
= <integer>
MAXPRIMATIVESPERBLOCK
numbers of graphics primitives in a single
block. Use MAXPRIMATIVESPERBLOCK
to reduce the number of primitives delivered to
= <boolean>
CONSTANTLYUSESCISSORING
the graphics hardware in a single block.
Turn ConstantlyUseScissoring on if
you see lines extending outside the borders of
= <boolean>
USEQUADSTRIPS
the frame. There is a slight performance penalty when using this option.
If some shaded or contour flooded quads or tri= <boolean>
USETRIANGLESTRIPS
angles do not appear or are black, try turning
this off.
As with USEQUADSTRIPS, try turning off
USEQUADSTRIPS before turning USETRIANGLESTIPS off. Turning off both options
will result in reduced performance, but may
= <boolean>
TRIANGULATEFILLEDPOLYGONS
help fix errors caused by buggy graphics card
drivers.
As with USEQUADSTRIPS, try turning on
TRIANGULATEFILLEDPOLYGONS if you
are still experiencing problems even after turnUSEGLCOLORMATERIALFUNCTION = <boolean>
ing off USETRIANGLESTRIPS and USEQUADSTRIPS.
Some graphics cards have problems with an
OpenGLs glColorMaterial function.
Higher performance (especially for continuous
contour flooded plots) can be achieved when it
= <integer>
MAXTEXTURESIZE
is used. However, it may need to be turned off
FORCESMOOTHSHADINGFORLIGHT- = <boolean>
if you are experiencing problems.
ING
ADJUSTRECTANGLERIGHTANDBOT- = <boolean>
TOM
}
POLYGONOFFSETEXTBIASFACTOR
STIPPLEALLLINES
Example:
Force all line drawing to include the last point in the line. Also, make the size of
205
<<rgb>>
Description:
Set a color value by assigning values to its red, green, and blue components.
Expands to:
Syntax
Notes
{
R
G
B
<op> <integer>
<op> <integer>
<op> <integer>
Example:
<<shademap>>
Description:
206
Map colors on the screen to shades of gray for monochrome hardcopy output.
Expands to:
Syntax
Notes
{
BLACKSHADE
REDSHADE
GREENSHADE
BLUESHADE
CYANSHADE
YELLOWSHADE
PURPLESHADE
WHITESHADE
CUSTOM1SHADE
CUSTOM2SHADE
CUSTOM3SHADE
CUSTOM4SHADE
CUSTOM5SHADE
CUSTOM6SHADE
CUSTOM7SHADE
CUSTOM8SHADE
= <dexp>
= <dexp>
= <dexp>
= <dexp>
= <dexp>
= <dexp>
= <dexp>
= <dexp>
= <dexp>
= <dexp>
= <dexp>
= <dexp>
= <dexp>
= <dexp>
= <dexp>
= <dexp>
Example:
<<symbolshape>>
Description:
Set a symbol shape. Symbols can be a geometric shape (circle, square, and so
forth) or an ASCII character.
207
Expands to:
Syntax
Notes
{
ISASCII
ASCIISHAPE
{
USEBASEFONT
FONTOVERRIDE
CHAR
}
GEOMSHAPE
= <boolean>
= <string>
= <geomshape>
= <boolean>
= <font>
= <string>
= <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:
Expands to:
Syntax
Notes
{
BOXTYPE
MARGIN
LINETHICKNESS
COLOR
FILLCOLOR
= <textboxtype>
<op> <dexp>
<op> <dexp>
= <color>
= <color>
Example:
208
<<textshape>>
Description:
Expands to:
Syntax
Notes
{
FONT
SIZEUNITS
HEIGHT
= <font>
= <sizeunits>
<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.
209
Expands to:
Syntax
Notes
{
SHOWONAXISLINE
SHOWONGRIDBORDERMIN
SHOWONGRIDBORDERMAX
SHOWONOPPOSITEEDGE
SHOWONALLAXES
SHOWATAXISINTERSECTION
SKIP
ERASEBEHINDLABELS
NUMFORMAT
TEXTSHAPE
OFFSET
LABELALIGNMENT
ANGLE
COLOR
= <boolean>
= <boolean>
= <boolean>
= <boolean>
= <boolean>
= <boolean>
= <integer>
= <boolean>
<<numberformat>>
<<textshape>>
<op> <dexp>
= <labelalignment>
<op> <dexp>
= <color>
Default = TRUE
Non-3D only. Default = FALSE
Non-3D only. Default = FALSE
3D only. Default = FALSE
Polar R only. Default = TRUE
Example:
Change the color for X-axis tick mark labels in a 2-D plot to be red:
$!TWODAXIS
XDETAIL
{
TICKLABEL
{
COLOR = RED
}
}
<<tickmarkdetail>>
Description:
210
Expands to:
Syntax
Notes
{
SHOWONAXISLINE
SHOWONGRIDBORDERMIN
SHOWONGRIDBORDERMAX
SHOWONOPPOSITEEDGE
SHOWONALLAXES
TICKDIRECTION
LENGTH
LINETHICKNESS
NUMMINORTICKS
MINORLENGTH
MINORLINETHICKNESS
= <boolean>
= <boolean>
= <boolean>
= <boolean>
= <boolean>
= <tickdirection>
<op> <dexp>
<op> <dexp>
= <integer>
= <double>
= <double>
Default = TRUE
Non-3D only. Default = FALSE
Non-3D only. Default = FALSE
3D only. Default = FALSE
Polar R only. Default = TRUE
Example:
Set the tick mark length to 2 percent for the second Y-axis in an XY-plot:
$!XYLINEAXIS
YDETAIL 2
{
TICKS
{
LENGTH = 2
SHOWONGRIDBORDERMIN = TRUE
}
}
<<volumeobjectstoplot>>
Description:
Expands to:
Syntax
Notes
{
SHOWISOSURFACES
SHOWSLICES
SHOWSTREAMTRACES
= <boolean>
= <boolean>
= <boolean>
Example:
$!FIELD
211
VOLUMEMODE
{
VOLUMEOBJECTSTOPLOT
{
SHOWISOSURFACES = NO
SHOWSLICES = YES
SHOWSTREAMTRACES = YES
}
}
<<xy>>
Description:
Expands to:
Syntax
Notes
{
<op> <dexp>
<op> <dexp>
X
Y
}
Example:
<<xyz>>
Description:
Expands to:
Syntax
Notes
{
X
Y
Z
<op> <dexp>
<op> <dexp>
<op> <dexp>
Example:
212
$!GLOBALTHREED
AXISSCALEFACT
{
Z = 0.5
}
<<zebrashade>>
Description:
Expands to:
Syntax
Notes
{
INCLUDE
ISTRANSPARENT
COLOR
= <boolean>
= <boolean>
= <color>
Example:
Turn on zebra shading and make the zebra shade color to be black:
$!GLOBALCONTOUR
COLORMAPFILTER
{
ZEBRA
{
INCLUDE = TRUE
COLOR
= BLACK
}
}
213
214
Parameter Assignment
Values, Expressions, and
Arithmetic and Logical
Operators
CHAPTER 7
Assignment Values.
Value Identifier
Allowable Values
<addonstyle>
V7STANDARD,V7ACTIVEX
<altmousebuttonmode>
REDRAW, REVERTTOSELECT
<anchoralignment>
<anglespec>
RADIANS, DEGREES
<arrowheadattachment>
<arrowheadstyle>
<axisalignment>
<axismode>
<axistitlemode>
USEVARNAME, USETEXT
<axistitleposition>
<backingstoremode>
<bitdumpregion>
<boolean>
<boundarycondition>
<boundarysetting>
215
Chapter 7. Parameter Assignment Values, Expressions, and Arithmetic and Logical Operators
216
Assignment Values.
Value Identifier
Allowable Values
<boxtype>
<charactersequence>
<clipping>
CLIPTOVIEWPORT, CLIPTOFRAME
<color>
<colormap>
<colormapcontrol>
COPYSTANDARD, REDISTRIBUTECONTROLPOINTS,
RESETTOFACTORY
<colormapdistribution>
BANDED, CONTINUOUS
<conditionalexp>
<contourcoloring>
<contourlabelaction>
ADD, DELETEALL
<contourlevelaction>
<contourlinemode>
<contourtype>
<coordscale>
LINEAR, LOG
<coordsys>
<curveinfomode>
CURVEDETAILS, CURVEPOINTS
<curvetype>
<datatype>
<derivpos>
<dexp>
<double>, ((<expression>))
<double>
<draworder>
BEFOREDATA, AFTERDATA
<drift>
<epspreviewimagetype>
<errorbartype>
<exportformat>
<expression>
Assignment Values.
Value Identifier
Allowable Values
<fillmode>
<font>
<frameaction>
<framecollection>
ALL, PICKED
<framemode>
<functiondependency>
<geomshape>
<geomtype>
<ijkblankmode>
INTERIOR, EXTERIOR
<ijklines>
I, J, K
<ijkplane>
I, J, K
<imagestyle>
ONEPERFRAME, WORKSPACEONLY
<integer>
<interpptselection>
<isosurfacesselection>
<krigdrift>
<labelalignment>
<labeltype>
<lightingeffect>
PANELED, GOURAUD
<linearinterpmode>
DONTCHANGE, SETTOCONST
<linepattern>
<linktype>
<macrofunctionvar>
WITHINFRAME, BETWEENFRAMES
|<integer>|
217
Chapter 7. Parameter Assignment Values, Expressions, and Arithmetic and Logical Operators
Assignment Values.
Value Identifier
Allowable Values
<macrointrinsic>
<macrointrinsicvar>
|<macrointrinsic>|
<macroparameter>
<charactersequence>, <string>
<macroparameterlist>
<macrouserdefvar>
|<charactersequence>|
<macrovar>
<meshtype>
<mirrorvar>
X, Y, Z
<mousebuttonclick>
<mousebuttondrag>
<mousemode>
ADJUST, SELECT
218
<objectalign>
<op>
<originresetlocation>
DATACENTER, VIEWCENTER
<palette>
<papergridspacing>
<paperrulerspacing>
<papersize>
<pickaction>
<plotapproximationmode>
AUTOMATIC, NONCURRENTALWAYSAPPROX,
ALLFRAMESALWAYSAPPROX
<plottype>
<pointerstyle>
Assignment Values.
Value Identifier
Allowable Values
<pointselection>
<pointstoplot>
SURFACESONLY, ALL
<printerdriver>
<printrendertype>
VECTOR, IMAGE
<quickcolormode>
<readdataoption>
<relop>
<, >, <=, >=, ==, != (not equal to), <> (not equal
to). GREATERTHAN, LESSTHAN, EQUALTO, NOTEQUALTO
<resizefilter>
<rgblegendorientation>
<rgbmode>
<rotateaxis>
<rotateoriginlocation>
VIEWER, DEFINEDORIGIN
<rotationmode>
<scope>
LOCAL, GLOBAL
<set>
<setspecifier>
<integer>, <integer>-<integer>[:<integer>]
<sizeunits>
<skipmode>
BYINDEX, BYFRAMEUNITS
<slicesource>
<sortby>
<standardcolormap>
<stipplemode>
<streamdirection>
<streamtype>
<string>
"<charactersequence>", '<charactersequence>'b
<stylebase>
FACTORY, CONFIG
<subboundary>
219
Chapter 7. Parameter Assignment Values, Expressions, and Arithmetic and Logical Operators
Assignment Values.
Value Identifier
Allowable Values
<sunrasterformat>
<surfacestoplot>
<textanchor>
<textboxtype>
<threedviewchangedrawlevel>
FULL, TRACE
<thetamode>
<tickdirection>
<tiffbyteorder>
INTEL, MOTOROLA
<transformation>
<translucency>
<twoddraworder>
BYZONE, BYLAYER
<valueblankcellmode>
<valueblankrelop>
<valueformat>
<valuelocation>
<varloadmode>
BYNAME, BYPOSITION
<vectortype>
<viewmode>
<workspaceviewmode>
<xyaxis>
X, Y
220
supported by Tecplot.
abs(x)
Absolute value of x.
acos(x)
asin(x)
Arc sine of x between -1 and 1. Return an angle between -p/2 and p/2 radians.
atan(x)
atan2(y,x)
ceil(x)
cos(x)
Cosine of x in radians.
cosh(x)
Hyperbolic cosine of x.
exp(x)
Exponential of x.
floor(x)
frac(x)
Fractional part of x.
int(x)
Integer part of x.
log(x)
Natural logarithm of x.
log10(x)
max(x,y)
Larger of x or y.
min(x,y)
Smaller of x or y.
pow(x,y)
xy.
sin(x)
Sine of x in radians.
sinh(x)
Hyperbolic sine of x.
sqrt(x)
Square root of x.
tan(x)
Tangent of x in radians.
221
Chapter 7. Parameter Assignment Values, Expressions, and Arithmetic and Logical Operators
supported by Tecplot.
Hyperbolic tangent of x.
supported by Tecplot.
BASEe
DEG
GAMMA
Euler-Mascheroni constant.
PHI
Golden ratio: ( 5 + 1 ) 2 .
PI
p.
RAD
The following table shows the operator precedence and associativity. Operators with higher precedence 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.
Table 7-4. Operator
Operator Type
Operators
Associativity
Expression
( )
Left to right.
Power
^ **
Right to left.
Unary
- + !
Right to left.
Multiplicative
* /
Left to right.
Additive
+ -
Left to right.
Relational
Left to right.
Logical AND
&&
Left to right.
Logical OR
||
Left to right.
Conditional
? :
Right to left.
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.
Examples of common expressions used in the Tecplot macro language follow (note that all expressions
evaluate to a simple, <dexp>, value):
$!If (|b|^2) > (4*|a|*|c|)
$!If |a| > 0.0
$!VarSet |root1| = (-|b| + sqrt(|b|^2 - 4*|a|*|c|) / (2*|a|))
$!VarSet |root2| = (-|b| - sqrt(|b|^2 - 4*|a|*|c|) / (2*|a|))
$!EndIf
222
$!EndIf
$!VarSet |area| = (PI*|r|**2)
In addition to the more common operators mentioned above, some relational and logical operators are
provided to form compound expressions. A relation, <relation>, may be constructed and used in conjunction with the conditional operator (? and :) to form compound expressions. The conditional operator (? and :) has the following syntax:
<relation> ? <expression
where:
<relation> is a conditional statement that evaluates to true or false, and is formed by any
two subexpressions which are compared to one another with one of the relational operators (>, >=, <, <=, ==, !=) in combination with zero or more of the logical operators:
logical Not (!), logical And (&&), and logical Or (||).
It is important not to confuse an expression's relation, <relation>, that controls the evaluation of a
compound expression, with the conditional expression, <conditionalexp>, that controls the execution
of control commands such as $!IF and $!WHILE.
For example, the following is a valid macro command since it has a valid expression syntax and a valid
control command syntax:
$!If |a| > (PI*|r|^2)
...
$!EndIf
The following is also a valid macro command because, like the last example, it has a valid expression
syntax and a valid control command syntax:
$!If (|a|^2) == (|b| > 5 ? 1 : 0)
223
Chapter 7. Parameter Assignment Values, Expressions, and Arithmetic and Logical Operators
...
$!EndIf
The following is not a valid macro command since it has an invalid expression syntax and consequently an invalid control command syntax:
$!If (|a| > PI*|r|^2)
...
$!EndIf
As with the invalid example above, if Tecplot encounters a relation, <relation>, within an expression,
<expression> (enclosed within ( and ) delimiters), it expects to find the conditional operator (? and
:) and the two required expressions following the specified relation.
224
Internal Variables
CHAPTER 8
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|
Variables
Notes
|AUXDATASET|
|AUXFRAME|
|AUXZONE|
|AXISMAXA|
|AXISMAXR|
|AXISMAXX|
225
226
Variables
Notes
|AXISMAXY|
|AXISMAXZ|
|AXISMINA|
|AXISMINR|
|AXISMINX|
|AXISMINY|
|AXISMINZ|
|BYTEORDERING|
|COLORMAPDYNAMIC|
|DATASETFNAME|
|DATASETTITLE|
The title of the data set, or No Data Set if a dataset does not exist.
|DATE|
|ENDSLICEPOS|
|EXPORTISRECORDING|
|FRAMENAME|
|INBATCHMODE|
|ISDATASETAVAILABLE|
|ISOSURFACELEVEL|
|LAYOUTFNAME|
|LOOP|
|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.
Internal Variables
Variables
Notes
|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.
|MAXK|
|MAXR|
|MAXS|
Maximum value for scatter sizing variable for the currently active
zones.
|MAXU|
|MAXV|
|MAXVnn|
|MAXVAR|
|MAXW|
|MAXX|
|MAXY|
|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.
227
228
Variables
Notes
|MINB|
|MINC|
|MINS|
Minimum value for scatter sizing variable for the currently active
zones.
|MINU|
|MINV|
|MINVnn|
|MINVAR|
|MINW|
|MINX|
|MINY|
|MINZ|
Minimum value for variable assigned to the Z-axis for the currently
active zones.
|NUMFRAMES|
Number of frames.
|NUMLINEMAPS|
|NUMPLANES|
|NUMVARS|
|NUMZONES|
|OPSYS|
|PAPERHEIGHT|
Returns height of paper, that is, the white area of the Tecplot work
area.
|PAPERSIZE|
|PAPERWIDTH|
Variables
Notes
|PLATFORM|
|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|
|STARTSLICEPOS|
|STREAMSTARTPOS|
|STREAMTYPE|
|TECHOME|
|TECPLOTVERSION|
|TIME|
|VARNAME|
|ZONEMESHCOLOR|
|ZONENAME|
8.2.1. Example 1
To compare a macro variable with an environment variable:
$!IF |SESSION_COEFF| == |$DEFAULT_COEFF|
# (perform some default processing here)
$!ENDIF
Where the DEFAULT_COEFF environment variable was set to some specified value of type double
before starting Tecplot.
229
8.2.2. Example 2
To create a string from an environment variable:
$!VARSET |AUTHOR| = "Author: |$LOGNAME|"
Examples:
Example 1: Add 2 to the macro variable |ABC|:
$!VARSET |ABC| += 2
Example:
230
Example:
$!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 1000
$!MACROFUNCTIONNAME = "3D Rotation Animation"
$!EXPORTSETUP EXPORTFORMAT = AVI
$!EXPORTSETUP IMAGEWIDTH = 546
$!EXPORTSETUP EXPORTFNAME = "|1|AxisRotation.avi"
$!EXPORTSTART
$!LOOP |2|
ANGLE = 3
ROTATEORIGINLOCATION = DEFINEORIGIN
$!REDRAW
$!EXPORTNEXTFRAME
$!ENDLOOP
231
$!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")
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|"
232
CHAPTER 9
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 Tecplot macros.
Value Type(s)
per Block
<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>
<integer>
<integer>
Red.
Green.
Blue.
Notes
<contourlevelrawdata>
<dexp>
Contour level.
<geometryrawdata>
(Line segment geometry)
<xyrawdata>
<geometryrawdata>
(3D Line segment)
<xyzrawdata>
<geometryrawdata> (circle)
<dexp>a
<geometryrawdata> (ellipse)
<dexp>a
<dexp>a
<geometryrawdata> (rectangle)
<dexp>a
<dexp>a
<geometryrawdata> (square)
<dexp>a
<xyrawdata>
<dexp>
<dexp>
X.
Y.
<xyzrawdata>
<dexp>
<dexp>
<dexp>
X.
Y.
Z.
a. A count value does not precede the raw data in this case.
233
Examples:
Example 1:
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 3:
Example 4:
Example 5:
234
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.
235
236
CHAPTER 10
The only macro control commands allowed in stylesheets and layout files are:
$!VARSET and $!REMOVEVAR
The only SetValue command allowed in color map files is:
$!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 $!FIELD 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 Tecplot.
The file name referenced in the $!INCLUDEMACRO command cannot use Tecplot macro variables.
Size limitations:
Maximum number of nested macro function calls
10
10
Unlimited.
Unlimited.
200,000
20
237
238
31
Unlimited.
400
PART II
Binary Data
240
CHAPTER 11
This chapter is intended only for advanced users of Tecplot who have a solid background in UNIX or
Windows and application programming. Support for topics discussed in this chapter may be limited.
Regular technical support is not intended to help you program your application to use the direct data
file capabilities of Tecplot.
Data files for Tecplot are commonly created as output from an application program. These files are
most often in ASCII format, and are then converted to a binary format with Preplot.
Included with your distribution of Tecplot is a library that contains utility functions that you can link
with your application program to create binary data files directly, bypassing the use of ASCII files.
This allows for fewer files to manage, conserves on disk space, and saves the extra time required to
convert the files.
In UNIX, the utility functions discussed below are available in the library archive tecio.a which is
located in the lib sub-directory of the Tecplot Home Directory. Under Windows, this library is called
TecIO.dll and is located in the bin sub-directory. Instructions on compiling and linking using the
TECIO library can be found in the readme.doc file in the util/tecio sub-directory under the
TECHOME directory.
Tecplot 10 introduces a new set of TECIO functions to take full advantage of the new capabilities it
offers. Each of these functions has a suffix of "100" to differentiate it from previous editions. Please
note that all existing, Version 9, TECIO functions still exist and are supported for backward compatibility.
241
242
243
TECAUXSTR100
Summary:
Writes auxiliary data for the data set to the data file. The function may be called
any time between TECINI100 and TECEND100. Auxiliary data may be used by
text, macros, equations (if it is numeric) and add-ons. It may be viewed directly in
the AuxData page of the Data Set Information dialog.
FORTRAN Syntax:
&
C Syntax:
#include TECIO.h
INTEGER4 TECAUXSTR100(char *Name,
char *Value)
244
Name
The name of the auxiliary data. If this duplicates an existing name, the value
will overwrite the existing value. Must be a null-terminated character string.
Value
The value to assign to the named auxiliary data. Must be a null-terminated
character string.
TECDAT100
Summary:
Zone
Type
Variable
Location
IsBlock
Number of Values
Supplied
Ordered
Nodal
IMax*
JMax*
KMax*
NumVars
Ordered
Nodal
IMax*
JMax*
KMax*
NumVars
Ordered
Cell Centered
(IMax-1)*
(JMax-1)*
(KMax-1)*
NumVars
Ordered
Cell Centered
Not allowed
Finite Element
Nodal
Finite Element
Nodal
Finite Element
Cell Centered
JMax (i.e.
NumElements) *
NumVars
Finite Element
Cell Centered
Not allowed
Order
Note that if any variables are cell centered then the data must be supplied in block
245
FORTRAN Syntax:
INTEGER*4 FUNCTION TECDAT100(N,
&
Data,
&
IsDouble)
INTEGER*4 N
REAL or DOUBLE PRECISION Data(1)
INTEGER*4 IsDouble
C Syntax:
#include TECIO.h
INTEGER4 TECDAT100(INTEGER4 *N,
void *Data,
INTEGER4 *IsDouble);
N
Pointer to an integer value specifying number of values to write.
Data
Array of single or double precision data values.
IsDouble
Pointer to the integer flag stating whether the array Data is single (0) or
double (1) precision.
TECEND100
Summary:
Must be called to close out the current data file. There must be a corresponding
TECEND100 for each TECINI100.
FORTRAN Syntax:
246
C Syntax:
#include TECIO.h
INTEGER4 TECEND100();
None.
TECFACE100
Summary:
Writes face connections for the current zone to the file. This function must be
called after TECNOD100, and may only be called if a non-zero value of
NumFaceConnections was used in the previous call to TECZNE100.
FORTRAN Syntax:
INTEGER*4 FUNCTION TECFACE100(FaceConnections)
INTEGER*4 FACECONNECTIONS
C Syntax:
#include TECIO.h
INTEGER4 TECFACE100(INTEGER4 *FaceConnections);
FaceConnections
The array that specifies the face connections. The array must be dimensioned (L, NumFaceConnections), where L is determined by the type of face connection specified by the FaceNeighborMode parameter to TECZNE100:
FaceNeighbor Mode
# Values
Data
LocalOneToOne
cz,fz,cz
LocalOneToMany
nz+4
cz,fz,oz,nz,cz1,cz2,...,czn
GlobalOneToOne
cz,fz,ZZ,CZ
GlobalOneToMany
2*nz+4
cz,fz,oz,nz,ZZ1,CZ1,ZZ2,CZ2,...,ZZn,CZn
Where:
cz = cell in current zone
fz = face of cell in current zone
247
TECFIL100
Summary:
Switch output context to a different file. Each time TECINI100 is called, a new
file context is switched to. This allows you to write multiple data files at the
same time.
FORTRAN Syntax:
C Syntax:
#include TECIO.h
INTEGER4 TECFIL100(INTEGER4 *F);
F
Pointer to integer specifying file number to switch to. A value of 1 indicates
a switch to the file opened by the first call to TECINI100.
248
TECGEO100
Summary:
FORTRAN Syntax:
INTEGER*4 FUNCTION TECGEO100(XPos,
&
YPos,
&
ZPos,
&
PosCoordMode,
&
AttachToZone,
&
Zone,
&
Color,
&
FillColor,
&
IsFilled,
&
GeomType,
&
LinePattern,
&
PatternLength,
&
LineThickness,
&
NumEllipsePts,
&
ArrowheadStyle,
&
ArrowheadAttachment,
&
ArrowheadSize,
&
ArrowheadAngle,
&
Scope,
&
Clipping,
&
NumSegments,
&
NumSegPts,
&
XGeomData,
&
YGeomData,
&
ZGeomData,
&
MFC)
DOUBLE PRECISION XPos
DOUBLE PRECISION YPos
DOUBLE PRECISION ZPos
INTEGER*4 PosCoordMode
INTEGER*4 AttachToZone
INTEGER*4 Zone
INTEGER*4 Color
INTEGER*4 FillColor
INTEGER*4 IsFilled
INTEGER*4 GeomType
INTEGER*4 LinePattern
DOUBLE PRECISION PatternLength
DOUBLE PRECISION LineThickness
249
INTEGER*4 NumEllipsePts
INTEGER*4 ArrowheadStyle
INTEGER*4 ArrowheadAttachment
DOUBLE PRECISION ArrowheadSize
DOUBLE PRECISION ArrowheadAngle
INTEGER*4 Scope
INTEGER*4 Clipping
INTEGER*4 NumSegments
INTEGER*4 NumSegPts
REAL*4 XGeomData
REAL*4 YGeomData
REAL*4 ZGeomData
CHARACTER*(*) MFC
C Syntax:
#include TECIO.h
INTEGER4 TECGEO(double *XPos,
double *YPos,
double *ZPos,
INTEGER4 *PosCoordMode,
INTEGER4 *AttachToZone,
INTEGER4 *Zone,
INTEGER4 *Color,
INTEGER4 *FillColor,
INTEGER4 *IsFilled,
INTEGER4 *GeomType,
INTEGER4 *LinePattern,
double *PatternLength,
double *LineThickness,
INTEGER4 *NumEllipsePts,
INTEGER4 *ArrowheadStyle,
INTEGER4 *ArrowheadAttachment,
double *ArrowheadSize,
double *ArrowheadAngle,
INTEGER4 *Scope,
INTEGER4 *Clipping,
INTEGER4 *NumSegments,
INTEGER4 *NumSegPts,
float *XGeomData,
float *YGeomData,
float *ZGeomData,
char *MFC)
250
XPos
Pointer to double value specifying the X-position or, for polar line plots, the
Theta-position of the geometry.
YPos
Pointer to double value specifying the Y-position or, for polar line plots, the
R-position of the geometry.
ZPos
Pointer to double value specifying the Z-position of the geometry.
PosCoordMode
Pointer to integer value specifying the position coordinate system.
0=Grid
1=Frame
4=Grid3D
AttachToZone
Pointer to integer flag to signal that the geometry is attached to a zone.
Zone
Pointer to integer value specifying the number of the zone to attach to.
Color
Pointer to integer value specifying the color to assign to the geometry.
0=Black
1=Red
2=Green
3=Blue
4=Cyan
5=Yellow
6=Purple
7=White
8=Custom1
9=Custom2
10=Custom3
11=Custom4
12=Custom5
13=Custom6
14=Custom7
15=Custom8
FillColor
Pointer to integer value specifying the color used to fill the geometry. See
Color above.
251
IsFilled
Pointer to integer flag to specify if geometry is to be filled.
GeomType
Pointer to integer value specifying the geometry type.
0=2DLineSegments
1=Rectangle
3=Circle
4=Ellipse
2=Square
LinePattern
Pointer to integer value specifying the line pattern.
0=Solid
1=Dashed
2=DashDot
3=Dotted
4=LongDash
5=DashDotDot
PatternLength
Pointer to double value specifying the pattern length in frame units.
LineThickness
Pointer to double value specifying the line thickness in frame units.
NumEllipsePts
Pointer to integer value specifying the number of points to use for circles and
ellipses. The value must be greater than 0.
ArrowheadStyle
Pointer to integer value specifying the arrowhead style.
0=Plain
2=Hollow
1=Filled
ArrowheadAttachment
Pointer to integer value specifying where to attach arrowheads.
0=None
1=Beginning
2=End
3=Both
ArrowheadSize
Pointer to double value specifying the arrowhead size in frame units.
252
ArrowheadAngle
Pointer to double value specifying the arrowhead angle in degrees.
Scope
Pointer to integer value specifying the scope. 0=global, 1=local.
Clipping
Specifies whether to clip the geometry (that is, only plot the geometry
within) to the viewport or the frame. 0=ClipToViewport,1=ClipToFrame.
NumSegments
Pointer to integer value specifying the number of polyline segments.
NumSegPts
Array of integer values specifying the number of points in each of the
NumSegments segments.
XGeomData
Array of floating-point values specifying the X-coordinates.
YGeomData
Array of floating-point values specifying the Y-coordinates.
ZGeomData
Array of floating-point values specifying the Z-coordinate.
MFC
Macro function command. Must be null terminated.
TECINI100
Summary:
Initializes the process of writing a binary data file. This must be called first before
any other TECIO calls are made. You may write to multiple files by calling
TECINI100 more than once. Each time TECINI100 is called, a new file is
opened. Use TECFIL100 to switch between files.
FORTRAN Syntax:
&
&
&
&
&
253
CHARACTER*(*) Title
CHARACTER*(*) Variables
CHARACTER*(*) FName
CHARACTER*(*) ScratchDir
INTEGER*4 Debug
INTEGER*4 VIsDouble
C Syntax:
#include TECIO.h
INTEGER4 TECINI100(char *Title,
char *Variables,
char *FName,
char *ScratchDir,
INTEGER4 *Debug
INTEGER4 *VIsDouble);
Title
Title of the data set. Must be null terminated.
Variables
List of variable names. If a comma appears in the string it will be used as the
separator between variable names, otherwise a space is used. Must be null
terminated.
FName
Name of the file to create. Must be null terminated.
ScratchDir
Name of the directory to put the scratch file. Must be null terminated.
Debug
Pointer to the integer flag for debugging. Set to 0 for no debugging or 1 to
debug.
VIsDouble
Pointer to the integer flag for specifying whether field data generated in
future calls to TECDAT are to be written in single or double precision. Set to
0 for single precision or 1 for double.
254
TECLAB100
Summary:
FORTRAN Syntax:
INTEGER*4 FUNCTION TECLAB100(Labels)
CHARACTER*(*) Labels
C Syntax:
#include TECIO.h
INTEGER4 TECLAB100(char *Labels);
Labels
Character string of custom labels. Separate labels by a comma or space. For
example, a set of custom labels for each day of the weeks is Sun Mon Tue
Wed Thu Fri Sat.
TECNOD100
Summary:
Writes an array of node data to the binary data file. This is the connectivity list for
finite element zones.
FORTRAN Syntax:
INTEGER*4 FUNCTION TECNOD100(NData)
INTEGER*4 NData(T, M)
C Syntax:
#include TECIO.h
INTEGER4 TECNOD100(INTEGER4 *NData);
NData
Array of integers. This is the connectivity list, dimensioned (T, M) (T
moving fastest), where M is the number of elements in the zone and T is set
according to the following list:
ELEMENT TYPE
Line Segment
Triangle
2
3
255
ELEMENT TYPE
Quadrilateral
Tetrahedral
Brick
4
4
8
TECTXT100
Summary:
FORTRAN Syntax:
INTEGER*4 FUNCTION TECTXT100(XOrThetaPos,
&
YOrRPos,
&
ZOrUnusedPos,
&
PosCoordMode,
&
AttachToZone,
&
Zone,
&
Font,
&
FontHeightUnits,
&
FontHeight,
&
BoxType,
&
BoxMargin,
&
BoxLineThickness,
&
BoxColor,
&
BoxFillColor,
&
Angle,
&
Anchor,
&
LineSpacing,
&
TextColor,
&
Scope,
&
Clipping,
&
Text,
&
MFC)
DOUBLE PRECISION XOrThetaPos
DOUBLE PRECISION YOrRPos
DOUBLE PRECISION ZOrUnusedPos,
INTEGER*4 PosCoordMode
INTEGER*4 AttachToZone
INTEGER*4 Zone
INTEGER*4 Font
INTEGER*4 FontHeightUnits
DOUBLE PRECISION FontHeight
INTEGER*4 BoxType
256
C Syntax:
#include TECIO.h
INTEGER4 TECTXT100(double *XOrThetaPos,
double *YOrRPosPos,
double *ZOrUnusedPos,
INTEGER4 *PosCoordMode,
INTEGER4 *AttachToZone,
INTEGER4 *Zone,
INTEGER4 *Font,
INTEGER4 *FontHeightUnits,
double *FontHeight,
INTEGER4 *BoxType,
double *BoxMargin,
double *BoxLineThickness,
INTEGER4 *BoxColor,
INTEGER4 *BoxFillColor,
double *Angle,
INTEGER4 *Anchor,
double *LineSpacing,
INTEGER4 *TextColor,
INTEGER4 *Scope,
INTEGER4 *Clipping,
char *Text,
char *MFC)
Return Value:
Parameters:
0 if successful, -1 if unsuccessful.
XOrThetaPos
Pointer to double value specifying the X-position or Theta-position (polar
plots only) of the text.
YOrRPos
257
6=Times Italic
7=Times Bold
8=Times Italic Bold
9=Courier
10=Courier Bold
5=Times
FontHeightUnits
Pointer to integer value specifying the font height units.
0=Grid
2=Point
1=Frame
FontHeight
Pointer to double value specifying the font height.
BoxType
258
2=Hollow
1=Filled
BoxMargin
Pointer to double value specifying the box margin (in frame units).
BoxLineThickness
Pointer to double value specifying the box line thickness (in frame units).
BoxColor
Pointer to integer value specifying the color to assign to the box.
0=Black
1=Red
2=Green
3=Blue
4=Cyan
5=Yellow
6=Purple
7=White
8=Custom1
9=Custom2
10=Custom3
11=Custom4
12=Custom5
13=Custom6
14=Custom7
15=Custom8
BoxFillColor
Pointer to integer value specifying the fill color to assign to the box. (See
BoxColor)
Angle
Pointer to double value specifying the text angle in degrees.
Anchor
259
5=MidRight
6=HeadLeft
7=HeadCenter
8=HeadRight
4=MidCenter
LineSpacing
Pointer to double value specifying the text line spacing.
TextColor
Pointer to integer value specifying the color to assign to the text. (See
BoxColor)
Scope
Pointer to integer value specifying the scope.
0=Global
1=Local
Clipping
Specifies whether to clip the geometry (that is, only plot the geometry within) to
the viewport or the frame. 0=ClipToViewport,1=ClipToFrame.
Text
Character string representing text to display. Must be null terminated.
MFC
Macro function command. Must be null terminated.
TECUSR100
Summary:
FORTRAN Syntax:
INTEGER*4 FUNCTION TECUSR100(S)
CHARACTER*(*) S
C Syntax:
260
#include TECIO.h
S
The character string to write to the data file. Must be null-terminated.
TECZAUXSTR100
Summary:
Writes an auxiliary data item for the current zone to the data file. Must be called
after TECZNE100 for the desired zone. Auxiliary data may be used by text,
macros, equations (if it is numeric) and add-ons. It may be viewed directly in the
AuxData page of the Data Set Information dialog.
FORTRAN Syntax:
INTEGER*4 FUNCTION TECZAUXSTR100(Name, Value)
&
CHARACTER*(*) Name
CHARACTER*(*) Value
C Syntax:
#include TECIO.h
INTEGER4 TECZAUXSTR100(char *Name,
char *Value);
Name
The name of the auxiliary data item. If a data item with this name already
exists, its value will be overwritten. Must be a null-terminated character
string.
Value
The auxiliary data value to be written to the data file. Must be a nullterminated character string.
TECZNE100
Summary:
Writes header information about the next zone to be added to the data file. After
TECZNE100 is called, you must call TECDAT100 one or more times (and then
261
FORTRAN Syntax:
INTEGER*4 FUNCTION TECZNE100(ZoneTitle,
&
ZoneType,
&
IMxOrNumPts,
&
JMxOrNumElements,
&
KMx,
&
ICellMax,
&
JCellMax,
&
KCellMax,
&
IsBlock,
&
NumFaceConnections,
&
FaceNeighborMode,
&
ValueLocation,
&
ShareVarFromZone
&
ShareConnectivityFromZone)
CHARACTER*(*) ZoneTitle
INTEGER*4 ZoneType
INTEGER*4 IMxOrNumPts
INTEGER*4 JMxOrNumElements
INTEGER*4 KMx
INTEGER*4 ICellMax
INTEGER*4 JCellMax
INTEGER*4 KCellMax
INTEGER*4 N
INTEGER*4 M
INTEGER*4 IsBlock
INTEGER*4 NumFaceConnections
INTEGER*4 FaceNeighborMode
INTEGER*4 ValueLocation
INTEGER*4 ShareVarFromZone
INTEGER*4 ShareConnectivityFromZone
C Syntax:
#include TECIO.h
INTEGER4 TECZNE100(char
INTEGER4
INTEGER4
INTEGER4
INTEGER4
INTEGER4
INTEGER4
INTEGER4
INTEGER4
262
*ZoneTitle,
*ZoneType,
*IMxOrNumPts,
*JMxOrNumElements,
*KMx,
*ICellMax,
*JCellMax,
*KCellMax,
*IsBlock,
INTEGER4
INTEGER4
INTEGER4
INTEGER4
INTEGER4
*NumFaceConnections,
*FaceNeighborMode,
*ValueLocation,
*ShareVarFromZone,
*ShareConnectivityFromZone)
ZoneTitle
The title of the zone. Must be null-terminated.
ZoneType:
The type of the zone:
0=ORDERED,1=FELINESEG,2=FETRIANGLE,3=FEQUADRILATERAL
,4=FETETRAHEDRON,5=FEBRICK
IMxOrNumPts:
For ordered zones, the number of nodes in the I index direction. For finiteelement zones, the number of nodes.
JMxOrNumElements:
For ordered zones, the number of nodes in the J index direction. For finiteelement zones, the number of elements.
KMx:
For ordered zones, the number of nodes in the K index direction. Not used
for finite-element zones.
ICellMax:
For zones of type FEBRICK only, the number of cells logically connected in
the I index direction.
JCellMax:
For zones of type FEBRICK only, the number of cells logically connected in
the J index direction.
KCellMax:
For zones of type FEBRICK only, the number of cells logically connected in
the K index direction.
IsBlock:
Indicates whether the data will be passed into TECDAT100 in BLOCK or
POINT format. 0=POINT, 1=BLOCK.
NumFaceConnections:
263
TECDAT
Summary:
264
(NumVars, NumPts).
TECDAT allows you to write your data in a piecemeal fashion in case it is not
contained in one contiguous block in your program. Enough calls to TECDAT
must be made that the correct number of values are written for each zone and that
the aggregate order for the data is correct.
In the above summary, NumVars is based on the number of variable names
supplied in a previous call to TECINI.
FORTRAN Syntax:
INTEGER*4 FUNCTION TECDAT(N,
&
Data,
&
IsDouble)
INTEGER*4 N
REAL or DOUBLE PRECISION Data(1)
INTEGER*4 IsDouble
C Syntax:
#include TECIO.h
INTEGER4 TECDAT(INTEGER4 *N,
void *Data,
INTEGER4 *IsDouble);
N
Pointer to an integer value specifying number of values to write.
Data
Array of single or double precision data values.
IsDouble
Pointer to the integer flag stating whether the array Data is single (0) or
double (1) precision.
TECEND
Summary:
Must be called to close out the current data file. There must be a corresponding
TECEND for each TECINI.
FORTRAN Syntax:
INTEGER*4 FUNCTION TECEND()
265
C Syntax:
#include TECIO.h
INTEGER4 TECEND();
None.
TECFIL
Summary:
Switch output context to a different file. Each time TECINI is called, a new file
context is switched to. This allows you to write multiple data files at the same
time.
FORTRAN Syntax:
INTEGER FUNCTION TECFIL(F)
INTEGER*4 F
C Syntax:
#include TECIO.h
INTEGER4 TECFIL(INTEGER4 *F);
F
Pointer to integer specifying file number to switch to.
TECGEO
Summary:
FORTRAN Syntax:
INTEGER*4 FUNCTION TECGEO(XPos,
&
YPos,
&
ZPos,
&
PosCoordMode,
&
AttachToZone,
&
Zone,
&
Color,
&
FillColor,
&
IsFilled,
&
GeomType,
266
&
LinePattern,
&
PatternLength,
&
LineThickness,
&
NumEllipsePts,
&
ArrowheadStyle,
&
ArrowheadAttachment,
&
ArrowheadSize,
&
ArrowheadAngle,
&
Scope,
&
NumSegments,
&
NumSegPts,
&
XGeomData,
&
YGeomData,
&
ZGeomData,
&
MFC)
DOUBLE PRECISION XPos
DOUBLE PRECISION YPos
DOUBLE PRECISION ZPos
INTEGER*4 PosCoordMode
INTEGER*4 AttachToZone
INTEGER*4 Zone
INTEGER*4 Color
INTEGER*4 FillColor
INTEGER*4 IsFilled
INTEGER*4 GeomType
INTEGER*4 LinePattern
DOUBLE PRECISION PatternLength
DOUBLE PRECISION LineThickness
INTEGER*4 NumEllipsePts
INTEGER*4 ArrowheadStyle
INTEGER*4 ArrowheadAttachment
DOUBLE PRECISION ArrowheadSize
DOUBLE PRECISION ArrowheadAngle
INTEGER*4 Scope
INTEGER*4 NumSegments
INTEGER*4 NumSegPts
REAL*4 XGeomData
REAL*4 YGeomData
REAL*4 ZGeomData
CHARACTER*(*) MFC
C Syntax:
#include TECIO.h
INTEGER4 TECGEO(double *XPos,
267
double *YPos,
double *ZPos,
INTEGER4 *PosCoordMode,
INTEGER4 *AttachToZone,
INTEGER4 *Zone,
INTEGER4 *Color,
INTEGER4 *FillColor,
INTEGER4 *IsFilled,
INTEGER4 *GeomType,
INTEGER4 *LinePattern,
double *PatternLength,
double *LineThickness,
INTEGER4 *NumEllipsePts,
INTEGER4 *ArrowheadStyle,
INTEGER4 *ArrowheadAttachment,
double *ArrowheadSize,
double *ArrowheadAngle,
INTEGER4 *Scope,
INTEGER4 *NumSegments,
INTEGER4 *NumSegPts,
float *XGeomData,
float *YGeomData,
float *ZGeomData,
char *MFC)
XPos
Pointer to double value specifying the X-position of the geometry.
YPos
Pointer to double value specifying the Y-position of the geometry.
ZPos
Pointer to double value specifying the Z-position of the geometry.
PosCoordMode
Pointer to integer value specifying the position coordinate system.
0=Grid
1=Frame
AttachToZone
Pointer to integer flag to signal that the geometry is attached to a zone.
Zone
268
Pointer to integer value specifying the number of the zone to attach to.
Color
Pointer to integer value specifying the color to assign to the geometry.
0=Black
1=Red
2=Green
3=Blue
4=Cyan
5=Yellow
6=Purple
7=White
8=Custom1
9=Custom2
10=Custom3
11=Custom4
12=Custom5
13=Custom6
14=Custom7
15=Custom8
FillColor
Pointer to integer value specifying the color used to fill the geometry. See
Color above.
IsFilled
Pointer to integer flag to specify if geometry is to be filled.
GeomType
Pointer to integer value specifying the geometry type.
0=2DLineSegments
1=Rectangle
2=Square
3=Circle
4=Ellipse
5=3DLineSegments
LinePattern
Pointer to integer value specifying the line pattern.
0=Solid
1=Dashed
2=DashDot
3=Dotted
4=LongDash
5=DashDotDot
PatternLength
Pointer to double value specifying the pattern length in frame units.
269
LineThickness
Pointer to double value specifying the line thickness in frame units.
NumEllipsePts
Pointer to integer value specifying the number of points to use for circles and
ellipses. The value must be greater than 0.
ArrowheadStyle
Pointer to integer value specifying the arrowhead style.
0=Plain
2=Hollow
1=Filled
ArrowheadAttachment
Pointer to integer value specifying where to attach arrowheads.
0=None
1=Beginning
2=End
3=Both
ArrowheadSize
Pointer to double value specifying the arrowhead size in frame units.
ArrowheadAngle
Pointer to double value specifying the arrowhead angle in degrees.
Scope
Pointer to integer value specifying the scope. 0=global, 1=local.
NumSegments
Pointer to integer value specifying the number of polyline segments.
NumSegPts
Array of integer values specifying the number of points in each of the
NumSegments segments.
XGeomData
Array of floating-point values specifying the X-coordinates.
YGeomData
Array of floating-point values specifying the Y-coordinates.
ZGeomData
Array of floating-point values specifying the Z-coordinate.
270
MFC
Macro function command. Must be null terminated.
TECINI
Summary:
Initializes the process of writing a binary data file. This must be called first before
any other TECIO calls are made. You may write to multiple files by calling
TECINI more than once. Each time TECINI is called, a new file is opened. Use
TECFIL to switch between files.
FORTRAN Syntax:
INTEGER*4 FUNCTION TECINI(Title,
&
Variables,
&
FName,
&
ScratchDir,
&
Debug,
&
VIsDouble)
CHARACTER*(*) Title
CHARACTER*(*) Variables
CHARACTER*(*) FName
CHARACTER*(*) ScratchDir
INTEGER*4 Debug
INTEGER*4 VIsDouble
C Syntax:
#include TECIO.h
INTEGER4 TECINI(char *Title,
char *Variables,
char *FName,
char *ScratchDir,
INTEGER4 *Debug
INTEGER4 *VIsDouble);
Title
Title of the data set. Must be null terminated.
Variables
List of variable names. If a comma appears in the string it will be used as the
separator between variable names, otherwise a space is used. Must be null
terminated.
271
FName
Name of the file to create. Must be null terminated.
ScratchDir
Name of the directory to put the scratch file. Must be null terminated.
Debug
Pointer to the integer flag for debugging. Set to 0 for no debugging or 1 to
debug.
VIsDouble
Pointer to the integer flag for specifying whether field data generated in
future calls to TECDAT are to be written in single or double precision. Set to
0 for single precision or 1 for double.
TECLAB
Summary:
FORTRAN Syntax:
INTEGER*4 FUNCTION TECLAB(Labels)
CHARACTER*(*) Labels
C Syntax:
#include TECIO.h
INTEGER4 TECLAB(char *Labels);
Labels
Character string of custom labels. Separate labels by a comma or space. For
example, a set of custom labels for each day of the weeks is Sun Mon Tue
Wed Thu Fri Sat.
TECNOD
Summary:
Writes an array of node data to the binary data file. This is the connectivity list for
finite element zones.
FORTRAN Syntax:
INTEGER*4 FUNCTION TECNOD(NData)
272
INTEGER*4 NData(T, M)
C Syntax:
#include TECIO.h
INTEGER4 TECNOD(INTEGER4 *NData);
NData
Array of integers. This is the connectivity list, dimensioned (T, M) (T
moving fastest), where M is the number of elements in the zone and T is set
according to the following list:
ELEMENT TYPE
Triangle
Quadrilateral
Tetrahedral
Brick
3
4
4
8
TECTXT
Summary:
FORTRAN Syntax:
INTEGER*4 FUNCTION TECTXT(XPos,
&
YPos,
&
PosCoordMode,
&
AttachToZone,
&
Zone,
&
Font,
&
FontHeightUnits,
&
FontHeight,
&
BoxType,
&
BoxMargin,
&
BoxLineThickness,
&
BoxColor,
&
BoxFillColor,
&
Angle,
&
Anchor,
&
LineSpacing,
&
TextColor,
&
Scope,
273
&
Text,
&
MFC)
DOUBLE PRECISION XPos
DOUBLE PRECISION YPos
INTEGER*4 PosCoordMode
INTEGER*4 AttachToZone
INTEGER*4 Zone
INTEGER*4 Font
INTEGER*4 FontHeightUnits
DOUBLE PRECISION FontHeight
INTEGER*4 BoxType
DOUBLE PRECISION BoxMargin
DOUBLE PRECISION BoxLineThickness
INTEGER*4 BoxColor
INTEGER*4 BoxFillColor
DOUBLE PRECISION Angle
INTEGER*4 Anchor
DOUBLE PRECISION LineSpacing
INTEGER*4 TextColor
INTEGER*4 Scope
CHARACTER*(*) Text
CHARACTER*(*) MFC
C Syntax:
#include TECIO.h
INTEGER4 TECTXT(double *XPos,
double *YPos,
INTEGER4 *PosCoordMode,
INTEGER4 *AttachToZone,
INTEGER4 *Zone,
INTEGER4 *Font,
INTEGER4 *FontHeightUnits,
double *FontHeight,
INTEGER4 *BoxType,
double *BoxMargin,
double *BoxLineThickness,
INTEGER4 *BoxColor,
INTEGER4 *BoxFillColor,
double *Angle,
INTEGER4 *Anchor,
double *LineSpacing,
INTEGER4 *TextColor,
INTEGER4 *Scope,
char *Text,
char *MFC)
274
Return Value:
Parameters:
0 if successful, -1 if unsuccessful.
XPos
Pointer to double value specifying the X-position of the geometry.
YPos
Pointer to double value specifying the Y-position of the geometry.
PosCoordMode
Pointer to integer value specifying the position coordinate system.
0=Grid
1=Frame
AttachToZone
Pointer to integer flag for to signal that the text is attached to a zone.
Zone
Pointer to integer value specifying the zone number to attach to.
Font
Pointer to integer value specifying the font.
0=Helvetica
1=Helvetica Bold
2=Greek
3=Math
4=User-Defined
6=Times Italic
7=Times Bold
8=Times Italic Bold
9=Courier
10=Courier Bold
5=Times
FontHeightUnits
Pointer to integer value specifying the font height units.
0=Grid
2=Point
1=Frame
FontHeight
Pointer to double value specifying the font height.
BoxType
275
2=Hollow
1=Filled
BoxMargin
Pointer to double value specifying the box margin (in frame units).
BoxLineThickness
Pointer to double value specifying the box line thickness (in frame units).
BoxColor
Pointer to integer value specifying the color to assign to the box.
0=Black
1=Red
2=Green
3=Blue
4=Cyan
5=Yellow
6=Purple
7=White
8=Custom1
9=Custom2
10=Custom3
11=Custom4
12=Custom5
13=Custom6
14=Custom7
15=Custom8
BoxFillColor
Pointer to integer value specifying the fill color to assign to the box. (See
BoxColor)
Angle
Pointer to double value specifying the text angle in degrees.
Anchor
276
5=MidRight
6=HeadLeft
7=HeadCenter
8=HeadRight
4=MidCenter
LineSpacing
Pointer to double value specifying the text line spacing.
TextColor
Pointer to integer value specifying the color to assign to the text. (See
BoxColor)
Scope
Pointer to integer value specifying the scope.
0=Global
1=Local
Text
Character string representing text to display. Must be null terminated.
MFC
Macro function command. Must be null terminated.
TECZNE
Summary:
Writes header information about the next zone to be added to the data file. After
TECZNE is called, you must call TECDAT one or more times (and then call
TECNOD if the data format is FEBLOCK or FEPOINT).
FORTRAN Syntax:
INTEGER*4 FUNCTION TECZNE(ZoneTitle,
&
L,
&
M,
&
N,
&
ZoneFormat,
&
DupList)
CHARACTER*(*) ZoneTitle
277
INTEGER*4 L
INTEGER*4 M
INTEGER*4 N
CHARACTER*(*) ZoneFormat
CHARACTER*(*) DupList
C Syntax:
#include TECIO.h
lNTEGER4 TECZNE(char *ZoneTitle,
INTEGER4 *L,
INTEGER4 *M,
INTEGER4 *N,
char *ZoneFormat,
char *DupList);
ZoneTitle
Title of the zone. Must be null terminated.
L, M, N
Pointers to integers specifying size of the zone. If the data is ordered (that is,
zone format is BLOCK or POINT), then L is the I-dimension, M is the Jdimension, and N is the K-dimension. If the data is finite-element (that is, the
zone format is FEBLOCK or FEPOINT), then L is the number of data points,
M is the number of elements, and N is set according to the following chart:
ELEMENT TYPE
Triangle
Quadrilateral
Tetrahedron
Brick
0
1
2
3
ZoneFormat
Must be set to one of BLOCK, POINT, FEBLOCK or FEPOINT. Must be null
terminated.
DupList
This parameter specifies a list of variables to duplicate from the preceding
zone. For a complete explanation of the DupList parameter, see the Tecplot
User's Manual. Must be null terminated.
The DupList parameter is a string of the following form:
"[n1,n2,...,nn][,FECONNECT]"
278
Example Programs
where n1...nn are the numbers of the variables to duplicate. If the zone is
finite-element, you may optionally include FECONNECT, which will
duplicate the connectivity list from the last zone.
Notes for using the DupList parameter:
You cannot use the DupList parameter for the first zone, since in
that case there is nothing to duplicate.
If you use FECONNECT, you cannot call TECNOD for this zone,
since FECONNECT specifies that the entire connectivity list from
the previous zone will be duplicated.
For finite-element zones, you can pass "FECONNECT" to duplicate
only the connectivity list.
You may pass either NULL or a 0 length string if you are not using
this parameter.
Example:
Duplicate variables 1 and 4 and the connectivity list. The DupList parameter
must be set to:
"1,4,FECONNECT"//char(0)
279
program test
character*1 NULLCHR
Integer*4
Debug,III,NPts,NElm
Dimension X(4,5), Y(4,5), P(4,5)
Integer*4 TecIni,TecDat,TecZne,TecNod,TecFil
Integer*4 VIsDouble
NULLCHR =
Debug
=
VIsDouble
IMax
=
JMax
=
KMax
=
CHAR(0)
1
= 0
4
5
1
C
C... Open the file and write the Tecplot data file
C... header information.
C
I = TecIni('SIMPLE DATASET'//NULLCHR,
&
'X Y P'//NULLCHR,
&
't.plt'//NULLCHR,
&
'.'//NULLCHR,
&
Debug,
&
VIsDouble)
Do 10 I
Do 10 J
X(I,J)
Y(I,J)
P(I,J)
10 Continue
=
=
=
=
=
1,4
1,5
I
J
I*J
C
C... Write the zone header information.
C
I = TecZne('Simple Zone'//NULLCHR,
&
IMax,
&
JMax,
&
KMax,
&
'BLOCK'//NULLCHR,
&
CHAR(0))
C
C... Write out the field data.
C
III = IMax*JMax
280
Example Programs
I
I
I
= TecDat(III,X,0)
= TecDat(III,Y,0)
= TecDat(III,P,0)
I = TecEnd()
Stop
End
281
282
Example Programs
C
C
C
C
C
8.
9.
10.
11.
Write
Write
Close
Close
Program ComplexTest
REAL*4
REAL*8
REAL*4
EQUIVALENCE
EQUIVALENCE
INTEGER*4
INTEGER*4
REAL*8
REAL*8
INTEGER*4
INTEGER*4
INTEGER*4
INTEGER*4
INTEGER*4
INTEGER*4
INTEGER*4
REAL*8
REAL*4
CHARACTER*1
INTEGER*4
POINTER
include "tecio.for"
Debug
VIsDouble
DIsDouble
NULCHAR
Zero
NULLPTR
=
=
=
=
=
=
2
0
0
CHAR(0)
0
0
C
C Open field.plt and write the header information.
C
I = TECINI100('DATASET WITH 1 ORDERED ZONE, 1 QUAD ZONE'//
&
NULCHAR,
&
'X Y P'//NULCHAR,
&
'field.plt'//NULCHAR,
&
'.'//NULCHAR,
283
&
&
C
C
C
Debug,
VIsDouble)
C
C
C
C
C
C
C
C
C
284
Example Programs
&
&
&
&
C
C
C
!
!
!
!
FaceNeighborMode
ValueLocation
ShareVarFromZone
ShareConnectivityFromZone)
C
C
C
0,
NULL,
NULL,
0)
=
=
=
=
IMax*JMax
TECDAT100(III,X,DIsDouble)
TECDAT100(III,Y,DIsDouble)
TECDAT100(III,P,DIsDouble)
Do 20 I = 1,50
XL(I) = I
YL(I) = sin(I/20.0)
20 Continue
C
C
C
C
C
C
C
285
&
&
C
C
C
NULL,
0)
C
C
C
C
C
C
C
C
C
C
286
Example Programs
I
C
C
C
C
C
= TECDAT100(III,P,DIsDouble)
Do 30 I = 1,IMax-1
Do 30 J = 1,JMax-1
K = I+(J-1)*(IMax-1)
L = I+(J-1)*IMax
NM(1,K) = L
NM(2,K) = L+1
NM(3,K) = L+IMax+1
NM(4,K) = L+IMax
30 Continue
I = TECNOD100(NM)
C
C
C
C
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
50
50
5
1
0
1
1
1
0
0
0
5.0
0.5
3
7
0.0
0
1.5
0
TECTXT100(XP,
287
&
&
&
&
&
&
&
&
&
&
&
&
&
&
&
&
&
&
&
&
&
C
C
C
C
C
YP,
0.0d0,
PositionCoordSys,
AttachToZone,
Zone,
FontType,
HeightUnits,
FH,
BoxType,
BoxMargin,
BoxLineThickness,
BoxColor,
BoxFillColor,
TextAngle,
Anchor,
LineSpacing,
TextColor,
Scope,
Clipping,
'Hi Mom'//NULCHAR,
''//NULCHAR)
XP
YP
ZP
IsFilled
Color
FillColor
GeomType
LinePattern
LineThickness
PatternLength
NumEllipsePts
ArrowheadStyle
ArrowheadAttachment
ArrowheadSize
ArrowheadAngle
NumSegments
288
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
25
25
0.0
0
0
7
2
1
0.3
1
72
0
0
0.0
15.0
1
Example Programs
NumSegPts(1)
= 1
XGeomData(1) = 30
YGeomData(1) = 0.0
ZGeomData(1) = 0.0
III =
&
&
&
&
&
&
&
&
&
&
&
&
&
&
&
&
&
&
&
&
&
&
&
&
&
C
C
C
TECGEO100(XP,
YP,
ZP,
PositionCoordSys,
AttachToZone,
Zone,
Color,
FillColor,
IsFilled,
GeomType,
LinePattern,
PatternLength,
LineThickness,
NumEllipsePts,
ArrowheadStyle,
ArrowheadAttachment,
ArrowheadSize,
ArrowheadAngle,
Scope,
Clipping,
NumSegments,
NumSegPts,
XGeomData,
YGeomData,
ZGeomData,
''//NULCHAR)
C
C
C
289
STOP
END
290
Example Programs
INTEGER4
INTEGER4
INTEGER4
INTEGER4
INTEGER4
double
float
Debug
= 2;
VIsDouble = 0;
DIsDouble = 0;
/*
* Open order.plt and write the header information.
*/
I = TECINI100("DATASET WITH ONE ORDERED ZONE AND ONE FE-QUAD ZONE",
"X Y P",
"field.plt",
".",
&Debug,
&VIsDouble);
/*
* Open line.plt and write the header information.
*/
VIsDouble = 1;
I = TECINI100("DATASET WITH ONE I-ORDERED ZONE",
"X Y",
"line.plt",
".",
&Debug,
&VIsDouble);
/*
* Calculate values for the field variables.
*/
for (J = 0; J < 5; J++)
for (I = 0; I < 4; I++)
{
X[J][I] = I+1;
Y[J][I] = J+1;
P[J][I] = (I+1)*(J+1);
}
/*
* Make sure writing to file #1.
*/
291
III = 1;
I = TECFIL100(&III);
/*
* Write the zone header information for the ordered zone.
*/
IMax
= 4;
JMax
= 5;
KMax
= 1;
ICellMax = 0;
JCellMax = 0;
KCellMax = 0;
ZoneType = 0;
IsBlock
= 1;
NumFaceConnections = 0;
FaceNeighborMode
= 0;
ShareConnectivityFromZone = 0;
I = TECZNE100("Ordered Zone",
&ZoneType,
&IMax,
&JMax,
&KMax,
&ICellMax,
&JCellMax,
&KCellMax,
&IsBlock,
&NumFaceConnections,
&FaceNeighborMode,
NULL,
/* ValueLocation */
NULL,
/* ShareVarFromZone */
&ShareConnectivityFromZone);
/*
* Write out the field data for the ordered zone.
*/
III = IMax*JMax;
I
= TECDAT100(&III,&X[0][0],&DIsDouble);
I
= TECDAT100(&III,&Y[0][0],&DIsDouble);
I
= TECDAT100(&III,&P[0][0],&DIsDouble);
/*
* Calculate values for the I-ordered zone.
*/
for (I = 0; I < 50; I++)
{
292
Example Programs
XL[I] = I+1;
YL[I] = sin((double)(I+1)/20.0);
}
/*
* Switch to the "line.plt" file (file number 2)
* and write out the line plot data.
*/
III = 2;
I = TECFIL100(&III);
/*
* Write the zone header information for the XY-data.
*/
IMax = 50;
JMax = 1;
KMax = 1;
I = TECZNE100("XY Line plot",
&ZoneType,
&IMax,
&JMax,
&KMax,
&ICellMax,
&JCellMax,
&KCellMax,
&IsBlock,
&NumFaceConnections,
&FaceNeighborMode,
NULL,
/* ValueLocation */
NULL,
/* ShareVarFromZone */
&ShareConnectivityFromZone);
/*
* Write out the line plot.
*/
DIsDouble = 1;
III = IMax;
I
= TECDAT100(&III,(float *)&XL[0],&DIsDouble);
I
= TECDAT100(&III,(float *)&YL[0],&DIsDouble);
/*
* Switch back to the field plot file and write out
* the finite-element zone.
*/
III = 1;
I = TECFIL100(&III);
293
/*
* Write the zone header information for the finite-element zone.
*/
ZoneType = 3; /* FEQuad */
NPts
= 20; /* Number of points */
NElm
= 12; /* Number of elements */
KMax
= 0; /* Unused */
I = TECZNE100("Finite Zone",
&ZoneType,
&NPts,
&NElm,
&KMax,
&ICellMax,
&JCellMax,
&KCellMax,
&IsBlock,
&NumFaceConnections,
&FaceNeighborMode,
NULL,
/* ValueLocation */
NULL,
/* ShareVarFromZone */
&ShareConnectivityFromZone);
/*
* Write out the field data for the finite-element zone.
*/
IMax
= 4;
JMax
= 5;
III
= IMax*JMax;
DIsDouble = 0;
I
= TECDAT100(&III,&X[0][0],&DIsDouble);
I
= TECDAT100(&III,&Y[0][0],&DIsDouble);
I
= TECDAT100(&III,&P[0][0],&DIsDouble);
/*
* Calculate and then write out the connectivity list.
* Note: The NM array references cells starting with
*
offset of 1.
*/
for (I = 1; I < IMax; I++)
for (J = 1; J < JMax; J++)
{
K = I+(J-1)*(IMax-1);
L = I+(J-1)*IMax;
NM[K-1][0] = L;
NM[K-1][1] = L+1;
294
Example Programs
NM[K-1][2] = L+IMax+1;
NM[K-1][3] = L+IMax;
}
I = TECNOD100((INTEGER4 *)NM);
/*
* Prepare to write out text record. Text is positioned
* at 0.5, 0.5 in frame units and has a height
* of 0.05 frame units.
*/
XP
= 50.0;
YP
= 50.0;
ZP
= 0.0;
FH
= 5.0;
Scope
= 1; /* Local */
Clipping
= 1; /* Clip to frame */
PositionCoordSys = 1; /* Frame */
FontType
= 1; /* Helv Bold */
HeightUnits
= 1; /* Frame */
AttachToZone
= 0;
Zone
= 0;
BoxType
= 0; /* None */
BoxMargin
= 5.0;
BoxLineThickness = 0.5;
BoxColor
= 3;
BoxFillColor
= 7;
TextAngle
= 0.0;
Anchor
= 0; /* Left */
LineSpacing
= 1.0;
TextColor
= 0; /* Black */
III =
TECTXT100(&XP,
&YP,
&ZP,
&PositionCoordSys,
&AttachToZone,
&Zone,
&FontType,
&HeightUnits,
&FH,
&BoxType,
&BoxMargin,
&BoxLineThickness,
&BoxColor,
295
&BoxFillColor,
&TextAngle,
&Anchor,
&LineSpacing,
&TextColor,
&Scope,
&Clipping,
"Hi Mom",
"");
/*
* Prepare to write out geometry record (circle). Circle is
* positioned at 25, 25 (in frame units) and has a radius of
* 20 percent. Circle is drawn using a dashed line.
*/
XP
YP
ZP
IsFilled
Color
FillColor
GeomType
LinePattern
LineThickness
PatternLength
NumEllipsePts
ArrowheadStyle
ArrowheadAttachment
ArrowheadSize
ArrowheadAngle
NumSegments
NumSegPts[0]
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
25.0;
25.0;
0.0;
0;
0;
7;
3; /* Circle */
1; /* Dashed */
0.3;
1.5;
72;
0;
0;
0.0;
15.0;
1;
1;
XGeomData[0] = 20.0;
YGeomData[0] = 0.0;
ZGeomData[0] = 0.0;
III =
296
TECGEO100(&XP,
&YP,
&ZP,
&PositionCoordSys,
&AttachToZone,
Example Programs
&Zone,
&Color,
&FillColor,
&IsFilled,
&GeomType,
&LinePattern,
&PatternLength,
&LineThickness,
&NumEllipsePts,
&ArrowheadStyle,
&ArrowheadAttachment,
&ArrowheadSize,
&ArrowheadAngle,
&Scope,
&Clipping,
&NumSegments,
NumSegPts,
&XGeomData[0],
&YGeomData[0],
&ZGeomData[0],
"");
/*
* Close out file 1.
*/
I = TECEND100();
/*
* Close out file 2.
*/
III = 2;
I = TECFIL100(&III);
I = TECEND100();
}
297
298
Index
Symbols
215, 216, 219, 220
"$!" 11
$ 166
$!ACTIVEFIELDZONES 11, 19
$!ACTIVELINEMAPS 11, 19, 20
$!ADDMACROPANELTITLE 11, 20
$!ADDONCOMMAND 11, 20
$!ALTERDATA 11, 21, 22, 23
$!ANIMATECONTOURLEVELS 11, 23, 24
$!ANIMATEIJKBLANKING 11, 24
$!ANIMATEIJKPLANES 11, 26
$!ANIMATELINEMAPS 11, 27
$!ANIMATESLICES 11, 27
$!ANIMATESTREAM 11, 28, 29
$!ANIMATEZONES 11, 29
$!ATTACHDATASET 11, 30
$!ATTACHGEOM 11, 31, 32
$!ATTACHTEXT 11, 33, 34, 209
$!AVERAGECELLCENTERDATA 12
$!BASICCOLOR 12, 35, 206
$!BASICSIZE 12, 35, 36, 194
$!BLANKING 12, 36, 37
$!BRANCHCONNECTIVITY 38
$!BRANCHFIELDDATAVAR 12, 39
$!BREAK 12, 39
$!COLORMAP 12, 40
in color map files 237
$!COLORMAPCONTROL 12
$!COLORMAPCONTROL
COPYSTANDARD 41, 42
$!COLORMAPCONTROL
REDISTRIBUTECONTROLPOINT
S 41
$!COLORMAPCONTROL
RESETTOFACTORY 42
$!COLORSPECTRUM 195
$!COMPATIBILITY 12, 42
$!CONTINUE 12, 43
$!CONTOURLABELS 12, 43
$!CONTOURLABELS ADD 43, 44
$!CONTOURLABELS DELETEALL 44
$!CONTOURLEVELS 12
$!CONTOURLEVELS ADD 45
$!CONTOURLEVELS
DELETENEAREST 46
$!CONTOURLEVELS DELETERANGE 46,
47
$!CONTOURLEVELS NEW 47
$!CONTOURLEVELS RESET 48
$!CONTOURLEVELS RESETTONICE 48,
49
$!CREATECIRCULARZONE 12, 49
$!CREATECONTOURLINEZONES 12, 51
$!CREATEFEBOUNDARY 12, 51, 52
$!CREATEFESURFACEFROMIORDERED
12, 52
$!CREATEISOZONES 12, 53
$!CREATELINEMAP 12, 53
$!CREATEMIRRORZONES 12, 53, 54
$!CREATENEWFRAME 12, 54
$!CREATERECTANGULARZONE 12, 55
$!CREATESIMPLEZONE 12, 56
$!CREATESLICEZONEFROMPLANE 12,
56, 57
$!CREATESLICEZONES 12, 57
$!CREATESTREAMZONES 12, 58
$!DATASETUP 12, 58
$!DEFAULTGEOM 12, 59, 60
$!DEFAULTTEXT 12, 60
$!DELAY 13, 61
$!DELETEAUXDATA 13, 61
$!DELETELINEMAPS 13, 62
$!DELETEVARS 13
299
Index
300
$!GETCURFRAMENAME 14, 86
$!GETFIELDVALUE 14, 86
$!GETFIELDVALUEREFCOUNT 14, 87
$!GETNODEINDEX 14
$!GETUSERINPUT
replaced by
$!PROMPTFORTEXTSTRING 145
$!GETVARLOCATION 14, 89
$!GETVARNUMBYNAME 89
$!GETVAROFFSETBYNAME 14
$!GETZONETYPE 14
$!GLOBALCONTOUR 14, 90, 92, 195, 213
$!GLOBALFRAME 14, 93
$!GLOBALISOSURFACE 14, 93
$!GLOBALLINEPLOT 14, 95
$!GLOBALPOLAR 14, 96
$!GLOBALRGB 14, 97
$!GLOBALSCATTER 14, 98, 204
$!GLOBALSLICE 14, 100
$!GLOBALSTREAM 14, 102
$!GLOBALTHREED 14, 56, 104, 213
$!GLOBALTHREEDVECTOR 14, 105
$!GLOBALTWODVECTOR 14, 107
$!IF 14, 108
$!INCLUDEMACRO 14, 109
restrictions on using 237
$!VIEW
$!VIEW
$!VIEW
$!VIEW
$!VIEW
$!VIEW
$!VIEW
$!VIEW
$!VIEW
$!VIEW
$!VIEW
$!VIEW
$!VIEW
MAKECURRENTVIEWNICE 177
NICEFIT 178
PASTE 178
PUSH 178
RESETTOENTIRECIRCLE 179
301
Index
302
<curveinfomode> 216
<datatype> 216
<derivpos> 216
<dexp> 216
<double> 216
<drift> 216
<epspreviewimagetype> 216
<errorbartype> 216
<exportformat> 216
<expression> 216
<standardcolormap> 219
<stipplemode> 219
| 227
Numerics
2D axes
setting attributes 172
2D field plots 44
2D vector plots
setting global attributes 107
3D axes
attributes settings 168
resetting 153
3D plots
setting global attributes 104, 169
3D resetting
axes 153
rotation origin 153
scale factors 154
3D vector plot attributes 105
A
Action commands 19
Active zones 19
Adding contour labels to your plot 42, 43
Adding contour levels
example 45
Adding titles to Quick Macro Panel 20
Add-on commands
send to add-on 20
Add-on loading 126
Add-on style 215
Adjust view to fit data 176
ALIGNINGCONTOURLABELS 84
ALLOWDATAPOINTSELECT 109
ALLOWHWACCELERATION 114
Altering data command 21
Anchor 189
Anchor text 34
303
Index
304
Color map
color spectrum 40
control 41
dynamic 226
gray scale output 206
loading 127
reset to default 40
setting RGB values 148
writing to file 184
Color map control 216
Color map distribution 216
Color map files 237
Color map overrides
setting 195
Color maps 40, 41, 194, 195, 216
assignment value options 219
contour 194
currently active 41, 42
raw data 233
Raw User-Defined 194
standard 41
Color text 33
colormapcontrolpoints subcommand 194
COLORMAPFILE 78
colormapoverrides subcommand 195
Colors 31, 216
assigning RGB values 206
RGB 97, 206
set command in macros 35
setting basic 35
shading 206
zebra shading 213
Command Line 7
Command parameters 9
Concatenate zones 58
Conditional execute 181
Conditional expressions 216
Conditionally processing macro commands 108
Configuration
OpenGL 204
Configuration file
SetValue macro commands 237
Configuring dropdown menus 193
Constants 222
Continue command 43
Continue to execute a set of commands 181
continuouscolor subcommand 196
Contour attributes 74
global changes 90
attaching data 30
Curve details
write to file 185
Curve equations
writing 185
Cut
delete picked objects 135
Cutaway views
blanking 36
D
DATA 110
Data
adjust axes to fit 174, 175
center in view 176
fit to axis grid area 177
read 148
rotating 154, 225
smooth 163
Data alteration command 21
Data extraction 72
Data files
function sequence 243
Data fit
adjust view to fit data 176
Data labels 99
Data manipulation 21
polar to rectangular coordinates 141
Data set
attach to frame command 30
naming 158
writing 185
Data set variable
get value for macro variable 86
Data set variables
set value from macro variable 158
Data sharing
branching connectivity 38
branching variables 39
connectivity 160, 264
field variables 160, 264
get reference count 87
Data type 22, 55, 216
DATAFILEVARLOADMODE 77
Debugging macro files 8
Debugging macros 7
Default attributes
frame style 159
geometry 59
305
Index
306
ENABLEWARNINGS 110
Encapsulated PostScript
preview image 216
EndLoop command 127
Environment variables 229
EQUATIONFILE 78
Equations 21
Error bars
plot types 216
Examples
2D axes attributes 141, 173
3D axis attributes 169
activating field zones for plotting 19
adding Line maps 20
adding zones to the set of active zones 19
assigning attributes for field plots 76
assigning axes attributes 191
assigning control point for small rainbow color
map 40
assigning plotter pens for hardcopy output 202
assigning the medium line pattern length 36
attributes applied to all frames 93
attributes for default geometry 60
attributes for exporting image files 71
axis grid area borders 190
axis gridlines settings 197
axis modes 163
axis tick mark attributes 211
axis tick mark labels 210
basic size values 194
circle raw data 234
color map control points 194
contour attributes 92
contour levels raw data 234
edit picked objects 129, 137
FORTRAN program 279
inverse distance interpolation 118
Line legend and data labels 95
line mappings attributes 124
line plot layers on or off 125
line segment geometry raw data 234
macro function file 8
making Line maps active for plotting 20
making line maps active for plotting 20
mapping monochrome hardcopy output 207
paper characteristics 131
paper size dimensions 201
path information 78
pick all in rectangle 134
307
Index
308
Isosurfaces
create FE surfaces 53
J
J Range 22
Jumping out of a macro 39
K
K Range 22
KRIGDRIFT 110
Kriging 118
Kriging Drift 216
KRIGRANGE 110
KRIGZEROVALUE 110
L
Labels
tick marks 209
LARGESTEP 115, 116
Layout
printing to paper or file 142
saving 156
Layout files
macro control commands 237
Layout of frames 82, 83
Layouts
attach data set of another frame 30
clearing 129
new 129
opening layout file 129
Light source shading 104, 169
change settings command 40
Limitations 237
Limits
set in Tecplot 120
Line mappings 20, 27, 65
animate command 27
assigning attributes 122
create 53
delete 62
draw order 161
duplicate 65
number of line mappings 228
set active mappings command 19
writing coefficients 185
writing curve information 185
line mappings
show symbols 125
Line maps
activating 20
see Line mappings 62
Line pattern 31
Line plot layers
turning on and off 124
Line plots 27
setting global attributes 95
show lines 125
Line spacing
text 34
Line thickness 31
Linear interpolation 121
LINEARINTERPCONST 110
LINEARINTERPMODE 110
LINEPATLENGTHS 36
Lines
line plots 125
LINETHICKNESSES 36
LISTCOMMANDSINMACROVIEWER 112
Load color map 127
Load data 148
Loading add-ons 126
Loading your own macro function file 8
Log axes 216
Loop command 127
M
Macro command language 3
Macro command summary 11
Macro command syntax 9
Macro commands 5, 7, 9
conditionally processing 108
macro variables 225
major 11
spacing 10
Macro control commands 19
allowed in stylesheets and layouts 237
Break 39
Continue 43
Delay 61
include macro 109
Loop...Endloop 127
pause 131
run macro function 156
stop execution 131
system commands 167
While...Endwhile 181
Macro definitions 8
Macro files 9
309
Index
debugging 8
first line 9
nesting one file within another 109
Macro function
execute 156
Macro function files
example 8
loading your own 8
Macro functions 7, 8
defining 128
retaining 7
run command 231
Macro language
restrictions and limitations 237
Macro Panel 8
Macro panel 128
adding title 20
Macro syntax
examples 223
Macro variable
set field value 158
Macro variables
assigning strings 230
assigning value or string 173
assigning values 230
function 231
get current frame name 86
get field value 86
name 230
remove user-defined 152
select data variable by name 89
using formats 232
Macro viewer 8
MACROFILE 78
Macros 5, 7, 8
debugging 7
running from the command line 7
running from the Quick Macro Panel 8
running from the Tecplot interface 8
Macros vs. macro functions vs. macro
commands 7
Magnification
set for view 179
zoom 180
Magnify picked objects 137
Major macro commands 11
Managing Tecplot macros 7
Mandatory parameters 9
Mappings
310
delete 62
duplicate 65
MAXCHRSINTEXTLABELS 120
MAXCUSTOMCOLORSININTERFACE 112
Maximizing
workspace view 183
Maximum values
as variables 226
MAXNUMCONTOURLEVELS 120
MAXPREPLOTVARS 120
MAXPREPLOTZONES 121
MAXPTSINALINE 120
MAXTRACELINES 112
MEDIUMSTEP 115, 116
Mesh attributes 74
Mesh plots
show 77
Message
display 131
Minimum values
as variables 228
MINPIXELSFORDRAG 113
Mirror zones
create 53
creating example 54
Modern color maps 40
Modifiers
command-specific 9
Monochrome hardcopy 206
Mouse button assignments 215
Mouse mode
set for picking 139
Move picked objects 139
Moving
data point 109
view 179
workspace view 183
N
Name
get frame name 86
Naming
data set 158
Negative values 22
Number format 200
Number of cycles for animation 28, 29
Number of ellipse points 31
number of planes 228
number of zones 228
Pattern length 31
Pause macro execution 131
Pause Tecplot execution 61
Pen plotters 201
PERCENTAGEOFPOINTSTOKEEP 114
Pick
copy picked objects 135
delete picked objects 135
global edit on picked objects 135
magnify picked objects 137
mouse mode set 139
move picked objects 139
object at given location 132
objects in rectangle 133
objects of type 133
objects to delete 135
paste picked objects from buffer 138
pop picked objects 138
push picked objects back 138
Pick commands 131140
PICKHANDLEWIDTH 114
Placing text in center of frame 34
Planes 228
animate command 26
Plot layers
field plots 76
Turning Line layers on and off 124
PLOTAPPROXIMATIONMODE 115
plotterpenmap subcommand 201
Points
write to file 185
POINTTEXTSIZES 36
Polar axes
setting attributes 140
Polar coordinates
converting to rectangular 141
Polyline
extracting data from 2D or 3D field plots 73
raw data 233
Pop frame 80
Pop frame at specified position 81
Popping
picked objects 138
Position
text example 209
Positioning frames 82, 83
Precise dot grid 202
precisegrid subcommand 202
Preferences
311
Index
basic color 35
basic size 35
show coordinates 109
PREPLOTARGS 58
Presetting raw user-defined color maps 41
Presetting user-defined color maps 41
PRINTDEBUG 115
Printing
attributes setup 143
to paper or file 142
Prompt commands 144146
Push
picked objects 138
placing a view on the view stack 178
Push frames 82
Push top frame to bottom 82
Q
Query dialogs 145
Query functions 8690
Quick Macro Panel 8, 128
adding title 20
QUICKCOLORMODE 115
Quit command 147
R
Range Parameters 22
Raster Metafile 71
Raw data 56, 73, 167
addoncommandrawdata 233
circle 234
color map 233
contour level 233
contour levels 234
geometry 233
line segment geometry 234
RGB values 234
section of macro commands 233
values 233
XY 233
XYZ 233
Raw User-Defined color maps 194
RAWDATA
example 234
Read data 148
rect subcommand 203
Rectangle 31
raw data 233
Rectangles 203
312
settings 203
Rectangular zones
create 55
Redistributing control points 41, 42
Redraw 151
Redraw All 151
Reference scatter symbol 99
attributes 204
Reference scatter symbols 204
refscatsymbol subcommand 204
Remove user-defined macro variable 152
Removing blanked surfaces 52
Renaming
variables 152
zones 153
rendconfig subcommand 204
Rendering
with OpenGL 204
Reposition
rotation origin 153
Reset
rotation origin 153
Resetting
3D scale factors 154
axes 153
vector length 154
Resetting contour levels 48, 49
Retaining macro function 7
RGB 206
rgb subcommand 206
Rotate
2D plot 154
3D plots 104, 155, 169
Rotate a 3D plot
example 225
ROTATION
details 115
Rotation
reset rotation origin 153
Ruler 130
RULERPADDING 115
RULERTHICKNESS 115
RUNDISPLAYLISTSAFTERBUILDING 114
Running
macro function 156, 231
Running macros
from the command line 7
from the Quick Macro Panel 8
from the tecplot interface 8
Tecplot 7
S
Saving
colo rmap 184
curve information 185
data set 185
layout 156
stylesheet 186
SCALE 115
Scale factors
resetting 154
Scatter attributes 75
Scatter legend 94, 99
Scatter plots 75
set global attributes 98
show 77
sizing by variable 94, 99
Scatter symbol attributes 204
Scatter symbols 204
Scope of geometries 32
Scope of text 32
Scratch data type 58
SCRATCHDATAFIELDTYPE 58
SCRBACKGROUNDCOLOR 115
SCREENRENDERING 114
Select objects 131
Setting (X,Y) positions 212
Setting (X,Y,Z) triplets 212
Setting attributes
for the default geometry 59
reference scatter symbols 204
Setting basic colors 35
Setting character spacing and sizing for fonts 79
Setting color values 206
Setting I-, J-, or K-indices 197
Setting index ranges 198
Setting miscellaneous parameters related to
data 58
Setting number formats 200
Setting position, border, and background
attributes 83, 125
Setting size preferences 36
Setting symbol shapes 207
Setting the red, green and blue components 35
Setting zebra shading attributes 213
Settings
OpenGL rendering 204
SetValue commands 11
313
Index
Source maps 65
Source zones 51, 52, 53, 54
Square 31
raw data 233
Steps per cycle in animation 29
STEPSIZE 115, 116
Stipple 219
Stop macro execution 131
Stream
animate command 28
Stream dashes
animating 29
Stream markers
animating 29
Streamtrace commands 164167
add 164
delete all 166
delete range 166
reset time increments 166
set termination line 167
Streamtrace paths 29
Streamtraces
animating as dashes or markers 29
create zones 58
deleting all 166
setting global attributes 102
Strings
assigning 230
STROKEFONTLINETHICKNESS 79
STYLEFILE 78
Stylesheet
read 150
writing to file 186
Stylesheets
macro control commands 237
Subscript size 79
SUBSUPFRACTION 79
Superscript size 79
Surface Effects 75
Symbol shape 207
Symbol shapes
setting 207
Symbols
line plots 125
symbolshape subcommand 207
SYMBOLSIZES 36
Syntax
example macros 223
System command instructions 167
314
TECDAT
TECEND
TECFIL
TECGEO
Text box 33
Text boxes 208
Text shape 33
textbox subcommand 208
textshape subcommand 209
Tick marks 210
axis 210
labels 209
setting attributes 211
ticklabeldetail subcommand 209
TICKLENGTHS 36
tickmarkdetail subcommand 210
Title
for data set 158
TRACEREDRAWMODE
details 116
Transfering control from macro to Tecplot 43
Transform 170
transforming
change coordinates 170
Translate picked objects 139
Translating
view 179
workspace view 183
TRANSLATION 116
TRIANGLEKEEPFACTOR 110
Triangulating 171
U
Undo
view only 177
UNIXHELPBROWSERCMD 116
USEAPPROXIMATEPLOTS 116
USEDISPLAYLISTS 116
USEDOUBLEBUFFERING 116
User input dialogs 144, 145
User interface
launching dialogs 119
set attributes 109
User-defined variables 230
USETECPLOTPRINTDRIVERS 117
Using value-blankings
example 38
V
Value blanking 36
Values
display 99
macro variables 225
315
Index
paste 178
return to last view 182
rotate 155
shift workspace 183
translate 179
zooming workspace 184
View commands 174181, 181184
View compound function family 174
View stack
placing a view on the stack 178
retrieve last view 177
Viewer/Debugger 5
volume attributes 76
Volume objects 211
Volume surfaces
create FE surfaces 53
VOLUMEMODE 76
volumeobjectstoplot subcommand 211
W
While command 181
Workspace
color map dialog 41
expanding 183
frame 80
Workspace commands 181184
Writing
color map 184
data set 185
stylesheet 186
Writing current colormap to file 185
X
X-axis gridlines 197
XORCOLOR 117
XY
raw data 233
XY Line axes attributes
assigning 187
XY line plots
coordinate scale 216
curve information 216
curve type 216
error bars 216
xy subcommand 212
XY vectors 212
XYZ
raw data 233
vectors 212
316