Saves the current set of points from the global program state to a file in the profile directory.
The function accepts a filename (or relative subpath) and writes the point data to that file.
It returns the number of points saved.
planetcnc.points_save(filename)
#! /usr/bin/env python import planetcnc # Save the current points to a file named "points_backup.dat" in the profile directory. num_saved = planetcnc.points_save("points_backup.dat") print(f"Saved {num_saved} points to 'points_backup.dat'.")