Model.hm_getguientityname#

Model.hm_getguientityname(entity_type_id)#

Returns the fully qualified and properly capitalized HyperMesh entity name for the specified entity_type_id. Each entity type in HyperMesh is assigned a unique ID. This ID is converted to the entity type name using this function. If entity_type_id is not valid, undefined will be returned. This is the inverse of the Model.hm_getentitytype() function.

Parameters:

entity_type_id (unsigned int) – The unique entity type ID.

Returns:

Example#

Get the name of entity type 1 ( Nodes )#
import hm
import hm.entities as ent

model = hm.Model()

_, result = model.hm_getguientityname(entity_type_id=1)

print("entityName", result.entityName)