hm_getoption

Returns the value of certain HyperMesh options.

Syntax

hm_getoption option?default?

Type

HyperMesh Tcl Query Command

Description

This command returns the value of certain HyperMesh options.

Inputs

option
The option to query. See *setoption for a full list of options and possible values.
default
If set to 1, returns the default value instead of the current value, where supported.

Example

To query the cleanup tolerance:

hm_getoption cleanup_tolerance

To query the color of non-mappable solids:

hm_getoption display_color-15

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

10.0

14.0.130 - Options brought in sync with *setoption.