Utility Menus
The Utility menu contains options that allow you to customize the standard interface to include function buttons, radio options, and text that have HyperWorks-supplied and user-defined macros associated with them.
To open the Utility menu, click View > Utility Menu from the menu bar.
The Utility menu includes several pages of its own, each dedicated to different tasks. Thus it is actually a group of menus, although only one displays at a time. Each page is associated with a button at the bottom of the Utility menu; clicking one of these buttons opens the page associated with it. Only one button can be depressed at a time, similar to the way that only one radio button can be active at a time - selecting a button de-selects all of the other buttons in the group.
- The Utility menu page on which the operations appear
- Text to be displayed on each control
- Location and size of the menu
- The help string to be displayed on the menu bar
- The macro to call when each control is used, with optional arguments to pass
Use page number to create multiple pages, so that you can group the macros by type of operation.
Macros may contain any valid command file command, and are enclosed by the *beginmacro() and *endmacro() commands. Macros may accept variable arguments, passed to them from a control, by using the arguments $1, $2, etc. to specify where the arguments should be substituted. The *callmacro() command calls a macro from within another one, which allows you to create groups of standard reusable macros.
When HyperWorks starts, it looks for a macro file named hm.mac in the current directory, HOME directory (UNIX only), or the application’s base directory. If it finds this macro, HyperWorks runs it automatically to define the attributes and contents of the Utility menu. You may also select and run a macro file after HyperWorks starts from within the Options panel.
- disppage.mac
- Populates the Display page of the Utility menu.
- geommeshpage.mac
- Populates the Geom/Mesh page of the Utility menu.
- globalpage.mac
- Creates the button group that allows you to switch pages.
- qamodelpage.mac
- Populates the QA/Model page of the Utility menu.
- userpage.mac
- Populates the User page of the Utility menu.
A userpage.mac file may exist in the installation directory for HyperWorks or in the directory from which HyperWorks launches. When HyperWorks starts, it first looks for the userpage.mac file in the directory from which it launches and then in the installation directory. UNIX users also have the option of putting the userpage.mac file in their home directory. This file defines the attributes and contents of the User page of the Utility menu.