save_all_constants#

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

Saves all active 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)")
ensight.variables.save_all_constants("/usr/tmp/all_constants")
Returns:

zero on success, non-zero on error