*prevmacrofile()

Read in the previous macro file from the history stack.

Syntax

*prevmacrofile ()

Type

HyperMesh Utility Menu

Description

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")

Example

The Utility menu maintains a stack of the names of the macro files sourced in from the HyperMesh menu Config panel. This command, along with the *nextmacrofile command, allows you to move up and down the macro filename stack.