*pushmacrofile()

Push a filename onto the macro file history stack.

Syntax

*pushmacrofile (filename)

Type

HyperMesh Utility Menu

Inputs

filename
The filename to push onto the Utility menu history stack.

Example

The following example creates the Next and Prev buttons, and pushes two additional macro filenames onto the history stack.

*insertbutton(0,"prev",1,0,5,YELLOW,"prev macro file","prevMacroFile")
*insertbutton(0,"next",1,5,5,YELLOW, "next macro file","nextMacroFile")
*beginmacro("prevMacroFile")
    *prevmacrofile()
*endmacro()
*beginmacro("nextMacroFile")
    *nextmacrofile()
*endmacro()
*pushmacrofile("metalform.mac")
*pushmacrofile("optimize.mac")

The Utility menu maintains a stack of the names of the macro files sourced in from the HyperMesh menu Config panel. This command allows the user to push filenames onto history stack, and by using the *prevmacrofile and *nextmacrofile commands, they may move up and down the macro filename stack.