Problem: Every time I load data I need to perform several configuration steps. This setup is the same in all of my datasets so how can I set them up quickly?
Solution: Click the Scripting menu and select the Record Macro option. Perform the configuration steps for one dataset and stop the recording. To install the script into the Quick Macro Panel, place your macro into a function using the following template:
$!MACROFUNCTION
NAME = "NAME OF MACRO FUNCTION HERE"
SHOWINMACROPANEL = TRUE
KEYSTROKE = "C"
RECORDED MACRO CODE HERE
$!ENDMACROFUNCTION
Be sure that your code does not include the macro header (looks like #!MC nnnn) and copy the function into the tecplot.mcr file found in the Tecplot 360/Focus installation directory. Save the file. To run the script, open Tecplot 360/Focus, click the Scripting menu, select Quick Macros, and choose the macro from the list. Alternatively, you can run the script by pressing CTRL+M, release the keys, then press the C key. To change the key used, alter the keystroke parameter in the $!MACROFUNCTION command.




