variable#

contour.variable(p0: Any) int#

Use this variable for creating a contour part.

The variable must be active before the contour part can be created.
Args:
p0:

‘var_name’ create contours from this variable

Examples:
#
# Create contours of velocity magnitude of part 2
#
ensight.part.select_begin(2)
ensight.contour.begin()
ensight.contour.variable("velocity")
ensight.contour.end()
ensight.contour.create()
Returns:

zero on success, non-zero on error