@attributeindextype()

Returns the type of attribute on an entity.

Syntax

@attributeindextype (index)

Type

HyperMesh Template Function

Inputs

index
The index of the attribute owned by the current entity (starting at 1). The return types are:
  • 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

Example

If you want to print the types of all attributes on nodes:

*nodes()
*format()
 *counterset(counter1,1)
 *loopif([counter1 <= attributesmax])
   *field(integer,[@attributeindextype(counter1)],5)
   *end()
   *coutnerinc(counter1)
 *endloop()
*output()