getattr#

ENS_ANNOT.getattr(attrid: Any) Any#

Query the value of the specified attribute

Parameters:
attrid: Any

The attribute to query

Returns:
Any

The current value of the attribute.

Examples

These commands are equivalent

>>> v = part.VISIBLE
>>> v = part.getattr("VISIBLE")
>>> v = part.getattr(session.ensight.objs.enums.VISIBLE)