hm_getsolverid2

Returns the solver ID and pool name for the specified HyperMesh internal ID.

Syntax

hm_getsolverid2 entity_type entity_name_or_id ?search_type?

Type

HyperMesh Tcl Query

Description

Returns the solver ID and pool name 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 entity to query.
entity_name_or_id
The internal ID or name of the entity to query.
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.

Examples

To get the solver ID and pool name for property with internal ID 4:

hm_getsolverid2 props 4

or

hm_getsolverid2 props 4 –byid

To get the solver ID and pool name for a material with name 1:

hm_getsolverid2 mats 1

or

hm_getsolverid2 mats 1 -byname

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