save_constants#

variables.save_constants(p0: str, p1: str, p2: str, p3: str) int#

Saves selected constant variable values to a file.

Args:
p0:

‘filename’ name of the file in which to save the constants

Examples:
# 
# Activating all variables 
# 
ensight.variables.activate_all()
# 
# Computing area of one part 
# 
ensight.part.select_begin(1)
ensight.variables.evaluate("Area = Area(plist)")
# 
# Computing area of another part 
# 
ensight.part.select_begin(2)
ensight.variables.evaluate("Area2 = Area(plist)")
# 
# Selecting the computed area constant to write them out 
# 
Returns:

zero on success, non-zero on error