hm_getmarkarray

Returns a list of lists containing template/data name values for all entities on a mark.

Syntax

hm_getmarkarray entity_type mark_id data_name

Type

HyperMesh Tcl Query

Description

This command returns a list of lists containing template/data name values for all entities on a mark.

If one or more entities on mark_id are not valid for the queried data_name, the command will still complete but will post an error to the status bar. The values returned from this command are the same as those retuned individually by hm_getentityarray.

The order in which the values are returned is the same as the order of the entities on the mark, which can be obtained using hm_getmark.entity_type

Inputs

entity_type
The type of entity to query. See for the complete list of valid types.
mark_id
The ID of the mark. Valid values are 1 and 2.
data_name
The type of list being requested for the specified entity_type.

Examples

To get the lists of nodes belonging to node sets set1, set2 and set3:

*createmark sets 1 set1 set2
set3hm_getmarkarray sets 1 nodes

To get the lists of elements belonging to comps 1 and 2:

*createmark comps 1 1 2
hm_getmarkarray comps 1 elements

To get the lists of independent nodes for all rbe3 elements:

*createmark elems 1 "by config" rbe3
hm_getmarkarray elems 1 independentnodes

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-SA1-110