hm_attributeidfromname

Returns an attribute ID from the attribute name for the current template.

Syntax

hm_attributeidfromname attribute_name

Type

HyperMesh Tcl Query Command

Description

Returns an attribute ID from the attribute name for the current template. If the attribute does not exist in the current template, an error is returned.

Inputs

attribute_name
The name of the attribute to query.

Example

To get the attribute ID of the OptiStruct PSHELL_T attribute:

hm_attributeidfromname PSHELL_T

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