@getentitycountbyid()

Returns the entity count of an entity array type data name for a given entity type and ID.

Syntax

@getentitycountbyid (entity_type, entity_id, data_name)

Type

HyperMesh Template Function

Description

Returns the entity count of an entity array type data name for a given entity type and ID.

Inputs

entity_type
The type of entity.
entity_id
The entity ID to get count.
data_name
The data name belongs to the entity, should be 1D array.

Examples

To store the count of subobject for a given set ID into variable16:

*variableset(variable16, [@ getentitycountbyid (sets, id, subobject)])

Version History

2026