hm_getsolverids

Returns the solver IDs and pool names for the specified HyperMesh internal IDs.

Syntax

hm_getsolverids entity_type entity_ids ?search_type? ?groupbypoolname?

Type

HyperMesh Tcl Query

Description

Returns the solver ID and pool names for the specified HyperMesh internal ID. If there is no solver ID and pool for the specified entity, the internal ID and a blank ID pool are returned.

Inputs

entity_type
The type of entities to query.
entity_ids
The list of internal IDs to query. The return values will be in the same order as the input list.
search_type
By default, HyperMesh searches for entities by name, and if the name is not found, it then searches by ID. This option allows you to specify how the search for an entity should be conducted. Valid values are:
-byname - Search only by name.
-byid - Search only by ID.
groupbypoolname
By default, the command returns the entity IDs in the order of the list, with a list item containing two sub-lists for each input ID (the sublists contain the solver ID and the pool name). If the string groupbypoolname is passed, the return values are grouped together by pool name, with two items returned for each pool found, the first being the pool name, and the second being the list of solver IDs found for that pool.

Examples

To get the solver IDs and pool names for property with internal IDs 4 and 5:

hm_getsolverids props "4 5"

or

hm_getsolverids props "4 5" –byid

To get the solver IDs and pool names for material with names 1 and 2:

hm_getsolverid mats "1 2"

or

hm_getsolverid mats "1 2" -byname

To get the solver IDs and pool names for material with names 1 and 2 and group by pool name:

hm_getsolverid mats "1 2" groupbyname

or

hm_getsolverid mats "1 2" -byname groupbyname

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