hm_bag_getentitytypes

Returns the types of entities inside a bag.

Syntax

hm_bag_getentitytypes name_or_id ?search_type?

Type

HyperMesh Tcl Query

Description

This command returns the types of entities 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 and desvarlinks, then the following command will return ā€œdesvarlinks optiresponsesā€:

hm_bag_getentitytypes 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