hm_gettwoitemtoggle

Returns the current selection number of a two-item toggle menu bar item.

Syntax

hm_gettwoitemtoggle panel_name toggle_id

Type

HyperMesh Tcl GUI Command

Description

Returns the current selection number of a two-item toggle menu bar item.

Inputs

panel_name
The name of the panel from which the two-item toggle is accessed.
target_id
The ID of the two-item toggle to query.

Example

To get a plane definition from a user:

set selected_id [hm_getitemnumber lines "Input Component"]
set toggle_id [hm_getitemowner lines $selected_id]
set current_selected_id [hm_gettwoitemtoggle lines $toggle_id]

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

Version History

14.0