hm_getidpools

Returns a list of pool IDs or names for the specified entity type.

Syntax

hm_getidpools entity_type ?return_type?

Type

HyperMesh Tcl Query

Description

Returns a list of pool IDs or names for the specified entity type. The pool IDs and names are returned in the same order.

Inputs

entity_type
The type of entity to query.
return_type (optional)
Argument that specifies whether to return pool IDs or names. Valid values are name and ID (default if not specified).

Examples

To get the pool ID list for elements:

hm_getidpools elems
or
hm_getidpools elems id
To get the pool name list for properties:
hm_getidpools props name

Errors

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