hm_bag_getentitylistall

Returns the type and IDs of all entities contained in a bag.

Syntax

hm_bag_getentitylistall name_or_id ?search_type?

Type

HyperMesh Tcl Query

Description

This command returns the type and IDs for all entities contained in a bag.

Inputs

name_or_id
The name or ID of the queried bag entity.
?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. The two options are:
-byname
Search only by name.
-byid
Search only by ID.

Example

If a bag ossetup1 consists of optimization responses of IDs 1, 2 and desvarlinks of IDs 3, 4, then the following command will return "{desvarlinks 3 4 } {optiresponses 1 2}":

hm_bag_getentitylistall ossetup1 -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

10.0