Macros: Task Automation

To make common plot tasks and repetitive actions simple, Tecplot RS includes the ability to record sets of commands and play them back with the click of a button. Tecplot RS records the command sets in the Tecplot scripting language, in units of macros. You can record and play macros from within Tecplot RS, or you can use text editing software to edit an existing macro or write your own and then load it into Tecplot RS.

Macros can save you time by performing repetitive operations or time-consuming operations for you. For example, if you have daily data simulations and want to create a plot each day to view the simulation, you can record a macro that opens a project file with customized plot settings, loads data, manipulates the plot, and exports an image of the simulation. Then each day you only need to place the simulation data where the macro is assigned to look for it (with the same name), run the macro, and view the exported image!

This section discusses recording, editing, and playing macros from within Tecplot RS. Refer to Chapter 27: “Macro Commands Summary” for a list of all the commands used for functions specific to the RS Manager.