@checkentitynameexists()
Returns 1 if the entity name exists in the model or else 0.
Syntax
@checkentitynameexists (entity_type, entity_name)
Type
HyperMesh Template Function
Description
This function returns 1 if the entity name exists in the model or else 0.
Inputs
- entity_type
- The type of the entity. Valid values are COMPS, PROPS, and SETS.
- entity_name
- The name of the entity.
Example
*variableset(variable1,[@checkentitynameexists(SETS,name)])
*if([variable1 == 1])
*string("HMprop_")
*endif()
Version History
2022.2