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. Ifentity_type_idis not valid, undefined will be returned. This is the inverse of theModel.hm_getentitytype()function.- Parameters:
entity_type_id (unsigned int) – The unique entity type ID.
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:entityName (str)
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)