activate#

variables.activate(p0: str) int#

Activates a variable.

A variable must be activated before it can be used for any purpose.
Args:
p0:

‘name’ name of the variable to activate

Examples:
#
# Activate a variable and use it
# to color a part
#
ensight.variables.activate("temperature")
ensight.part.select_begin(1)
ensight.part.colorby_palette("temperature")
Returns:

zero on success, non-zero on error