save#

curve.save(p0: str, p1: str) int#

Specify how to save the selected curve(s) data to a file.

formatted - curve data saved in the following format:
velocity vs. Distance for line tool
Distance Value X Y Z
0.00000e+00 5.56944e-01 -1.84272e+00 5.00623e-01 1.02349e+00
1.16535e+00 5.06148e-01 -6.77367e-01 5.00623e-01 1.02349e+00
2.33070e+00 4.33805e-02 4.87984e-01 5.00623e-01 1.02349e+00
3.49605e+00 3.41879e-01 1.65334e+00 5.00623e-01 1.02349e+00
4.66140e+00 5.29504e-01 2.81869e+00 5.00623e-01 1.02349e+00
Minimum value overall
At Point = 4.87984e-01 5.00623e-01 1.02349e+00,
Dist. = 2.33070e+00, Value = 4.33805e-02
Maximum value overall
At Point = -1.84272e+00 5.00623e-01 1.02349e+00,
Dist. = 0.00000e+00, Value = 5.56944e-01
xy_data - curve data saved in the following (x,y) format for importing into a spreadsheets:
velocity vs. Distance for line tool
Distance
velocity
1
5
0 0.556944
1.16535 0.506148
2.3307 0.0433805
3.49605 0.341879
4.6614 0.529504
Args:
p0:

‘type’

  • formatted

  • xy_data

p1:

‘filename’ name of the file in which to save the curve points

Examples:
ensight.curve.select_begin(0)
ensight.curve.save("xy_data","Curve0")
Returns:

zero on success, non-zero on error