hm_attributetype

Returns the attribute type number of an attribute for the current template.

Syntax

hm_attributetype attribute_name_or_id

Type

HyperMesh Tcl Query

Description

Returns the attribute type number of an attribute for the current template. If the attribute is not an attribute from the current template, an error is returned. The values returned have the following meanings:
  • 1 - integer
  • 2 - double
  • 3 - string
  • 4 - 1D integer array
  • 5 - 1D double array
  • 6 - entity
  • 7 - (not supported)
  • 8 - (not supported)
  • 9 - 2D integer array
  • 10 - 2D double array
  • 11 - string array
  • 12 - 1D entity array
  • 13 - 2D entity array

Inputs

attribute_name_or_id
The name or ID of the attribute to query. The attribute must be in the current template.

Examples

To get the attribute type number of the attribute named LSD_PID for the LS-DYNA template:

hm_attributetype LSD_PID

To get the attribute type number of the attribute ID 149 for the LS-DYNA template:

hm_attributetype 149

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