Problem: I have a few macros that I run frequently. What is the easiest way to access them?

Solution: You can add your macro to the Quick Macro Panel so it is easily accessible from the Scripting menu under Quick Macros.  You can even define a keyboard shortcut to execute the macro.

For example, the following macro function will create a new 3D ordered zone:

$!MACROFUNCTION
  NAME = "Create 3D zone"
  SHOWINMACROPANEL = TRUE
  KEYSTROKE = "C"
$!CREATERECTANGULARZONE
  IMAX = 10
  JMAX = 10
  KMAX = 10
  X1 = 0
  Y1 = 0
  Z1 = 0
  X2 = 1
  Y2 = 1
  Z2 = 1
  XVAR = 1
  YVAR = 2
  ZVAR = 3
$!ENDMACROFUNCTION

To install it into the Quick Macro Panel, copy the code into the tecplot.mcr file found in the Tecplot 360/Focus installation directory.  After saving the file, open Tecplot 360/Focus and press CTRL+M, release the keys, then press the C key.  This will create a new 3D ordered zone and display it.

Share →