*callmacro()

Calls a macro from inside a macro.

Syntax

*callmacro (name arg1 arg2 … argn)

Type

HyperMesh Utility Menu

Inputs

name
The name of the macro.
arg1, … (optional)
Arguments to pass to the macro.

Example

To define a macro that will read in the passed filename ($1), and set the view:

*beginmacro("ReadFile")
*readfile($1)
*viewset(0.155815, -0.837776, 0.523310, 0.000000, 0.770903, -0.228101, -0.594708, 0.000000, 0.617600, 0.496086, 0.610303, 0.000000, -314.335103, 1025.278697, 371.660590, 1.000000, -104.720170, 134.274912, 749.720170, 672.065084)
     *window(3,396.256943,168.126312,640.688167,389.118473)
     *callmacro("EnterPerfMode")
*endmacro(

When no arguments are supplied, the arguments that were passed into the macro where the *callmacro command was made are passed to the named macro.