tee#

Mapdl.tee(label='', fname='', ext='', **kwargs)#

Writes a list of commands to a specified file at the same time that the

APDL Command: /TEE commands are being executed.

Parameters:
label

Indicates how ANSYS is to interpret this /TEE command:

Signals the beginning of the command text that is to be written to Fname. If Fname already exists, specifying NEW causes the contents of Fname to be overwritten. - Indicates that you want to append to Fname the command text that follows.

fname

File 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.

ext

Filename extension (eight-character maximum).

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:

the content of myfile.mac is:

This command is valid in any processor, but only during an interactive run.