@getentityvalue()

Retrieves the value of an entity.

Syntax

@getentityvalue (entity type, entity id, data name)

Type

HyperMesh Template Function

Inputs

entity type
The type of entity, such as sets, elems, or nodes, to which entity id refers.
entity id
The ID of the entity you want to reference.
data name
The data name of the entity. For example, ID, name, node1.globalx.

Example

To output the name of a set with the ID, 1:

*field (string,[@getentityvalue(sets, 1, name)], 32)

The @getentityvalue function allows you to get a value from an entity if you know the entity’s type and ID. It allows you to get a value of the collector which contains an entity. This function searches the database and may access the data values slower than other commands, such as *sets().