enum_to_name#

objs.enum_to_name(attrid: int) str#

Convert an attribute id into the associated string name

For a given attribute id, return the ASCII name of the attribute. If the input id is not a valid attribute, a RuntimeError will be raised.

Args:
attrid:

An attribute id number.

Returns:

The string name for the attribute number.

Example:
ensight.objs.enum_to_name(1610613151)
'NODEVARIABLE'