hm_getinternalidlist

Returns the internal HyperMesh IDs for a list of solver IDs and a solver ID pool.

Syntax

hm_getinternalidlist id_pool solver_id_list ?search_type?

Type

HyperMesh Tcl Query Command

Description

This command returns the internal HyperMesh IDs for a list of solver IDs and a solver ID pool. This command is only applicable to templates and entity types that have ID pools.

Inputs

id_pool
The pool ID or name. By default, the value is assumed to be the pool ID. This is controlled by the optional search_type argument.
solver_id_list
The list of solver IDs to query. All IDs must belong to the specified pool.
search_type
Defines whether id_pool is specified as a pool name or a pool ID. Valid values are -bypoolid and -bypoolname. If not specified, it defaults to -bypoolid.

Examples

To get the internal HM IDs of pool ID 1 and solver IDs 2, 3 and 4:

hm_getinternalidlist 1 "2 3 4"

or

hm_getinternalidlist 1 "2 3 4" -bypoolid

To get the internal HM IDs of pool PROP_IDPOOL and solver IDs 17 and 20:

hm_getinternalidlist PROP_IDPOOL "17 20" -bypoolname

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

12.0.110