SavePoints Statement

Saves point data in main memory to a disk file for the current robot.

Syntax
SavePoints filename

Parameters

fileName
Specifies the name of the destination file where point data will be saved, as a string expression. The extension must be “.pts”. You cannot specify a file path and fileName doesn’t have any effect from ChDisk. See ChDisk for the details.

Description
SavePoints saves points for the current robot to the specified file in the current project directory. The extension must be “.pts”. The extension must be .PTS.

The SavePoints command will also add the point file to the project for the current robot if it did not already exist.

Potential Errors

  • Out of Disk Space

    If there is no space remaining an error will occur.

  • Point file for another robot.

    If fileName is a point file for another robot, an error will occur.

  • A Path Cannot be Specified

    If fileName contains a path, an error will occur. Only a file name in the current project can be specified.

  • Bad File name

    If a file name is entered which has spaces in the name, or other bad file name characteristics an error will occur.

See Also
ImportPoints Statement, LoadPoints Statement

SavePoints Statement Example

Integer i
ClearPoints
For i = 1 To 10
   P(i) = XY(i, 100, 0, 0)
Next i
SavePoints "TEST.PTS"