hm_getitemnumberbytag

This command returns the number of a menu item on a panel using a tag (string).

Syntax

hm_getitemnumberbytag

Type

HyperMesh Tcl GUI

Description

This command returns the number of a menu item on a panel using a tag (string). The number can then be used in other Tcl commands, such as hm_getinputentry or hm_setinputentry.

Inputs

panel_name
The name of the panel from which you want to retrieve a menu bar item number.
tag_name
The name of the menu item. Each entry item is assigned a name (hard coded) since there is no name on the panel. Valid names include:
  • hmfile_entry
  • import_entry
  • export_entry
  • command_entry
  • template_entry
  • results_entry

Example

This command will set the file name on the hm file subpanel to model.hm:

set id [hm_getitemnumberbytag files hmfile_entry]
hm_setinputentry files $id "model.hm"

This command may not be fully supported in future releases of HyperMesh. As the user interface changes, Tcl code used to customize the interface may also need changes.

Errors

None.