@getdatabaseentitytypename()

Gets the type name of an entity from its index.

Syntax

@getdatabaseentitytypename (index)

Type

HyperMesh Template Function

Description

This function is used to get the HyperMesh entity type name corresponding to index, where index is a value between 1 and globalentitytypesmax (both inclusive).

Example

The following code prints all HyperMesh entity type names by calling the function @getdatabaseentitytypename for every valid index:

*text()
 *string("--------------List of entity types---------------")
 *end()
 *string("     Index            HM entity type name        ")
 *end()
 *string("-------------------------------------------------")
 *end()
 *counterset(counter1,1)
 *loopif([counter1 <= globalentitytypesmax])
   *string("         ")
   *field(integer,counter1,0)
   *string("                    ")
   *if([counter1 < 10])
     *string(" ")
   *endif()
   *field(string,[@getdatabaseentitytypename(counter1)],0)
   *end()
   *counterinc(counter1)
 *endloop()
 *string("-------------------------------------------------")
 *end()
*output()

Errors

If an error occurs in the execution of this command during export, the export is stopped at that point with an error message.