hm_attributelistall

Returns a list of all attribute IDs, names, types or type names for the current template.

Syntax

hm_attributelistall value

Type

HyperMesh Tcl Query

Description

Returns a list of all attribute IDs, names, types or type names for the current template.

Inputs

value
The type of list to return. Valid values are:
id - the attribute ID
name - the attribute name
type - the attribute type number
typename - the attribute type string

Examples

To list the IDs of all the attributes in the current template:

hm_attributelistall id

To list the names of all the attributes in the current template:

hm_attributelistall name

To list the type number of all the attributes in the current template:

hm_attributelistall type

To list the type name of all the attributes in the current template:

hm_attributelistall typename

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