hm_getmarkvalue

Returns a list of template/data name value for all entities on a mark.

Syntax

hm_getmarkvalue entity_type mark_id data_name output_type

Type

HyperMesh Tcl Query

Description

This command returns a list of template/data name value 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 message bar. The values returned from this command are the same as those retuned individually by hm_getentityvalue.

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.

Inputs

entity_type
The type of entity to query. All HyperMesh entities are valid.
mark_id
The ID of the mark. Valid values are 1 and 2.
data_name
The data name or template attribute to query. When querying using template names, a dollar sign ($) must precede the attribute name. In addition, make sure that a backslash (\) is used in front of the dollar sign ($).
output_type
The type of output expected. Valid values are:
  • 0 - integer/real number
  • 1 - string

Examples

To get the first node of elements 1-10:

*createmark elems 1 1-10
hm_getmarkvalue elems 1 node1.id 0

To get the name of components with ID 4, 6 and 8:

*createmark comps 1 4 6 8
hm_getmarkvalue comps 1 name 1

To get the thickness of all properties with a PSHELL card image for the OptiStruct template:

*createmark props 1 "by card image name" PSHELL
hm_getmarkvalue props 1 \$PSHELL_T 0

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