/TEE
/TEE, Label, Fname, Ext, --
Writes a list of commands to a specified file at the same
time that the commands are being executed.
Argument Descriptions
LabelSpecifies how Mechanical APDL is to interpret this /TEE command:
- NEW --
Signals the beginning of the command text that is to be written to
Fname. IfFnamealready exists, specifying NEW causes the contents ofFnameto be overwritten.- APPEND --
Indicates that you want to append to
Fnamethe command text that follows.- END --
Signals the end of the command text that is to be written to or appended to
Fname.
FnameFile name and directory path (248 characters maximum, including the characters needed for the directory path). An unspecified directory path defaults to the working directory; in this case, you can use all 248 characters for the file name.
ExtFilename extension (eight-character maximum).
If you plan to execute the file as if it were a Mechanical APDL command, use the extension
.mac.--Unused field.
Notes
You can use the /TEE command to record a macro to a specified file at the same time that the macro is being executed. It is similar to the Linux tee command.
For more information about the /TEE command, see the Introducing APDL of the Ansys Parametric Design Language Guide.
The following example illustrates the use of the /TEE command. If you issue these commands:
/tee,new,myfile,mac et,1,42,0,0,1 ex,1,3e7 /tee,end /tee,append,myfile,mac n,1,8 n,5,11 fill ngen,5,5,1,5,1,0,1 /tee,end
the content of myfile.mac is:
et,1,42,0,0,1 ex,1,3e7 n,1,8 n,5,11 fill ngen,5,5,1,5,1,0,1
This command is valid in any processor, but only during an interactive run.