ExportPoints Statement

Exports a point file to the specified path.

Syntax
ExportPoints fileName, destination

Parameters

fileName
The string expression extension for the specific file you want to export is “.pts”. You cannot specify a file path and fileName doesn’t have any effect from ChDisk. See ChDisk for the details.
destination
Specify the path and file name to save the file. The extension must be “.pts”. See ChDisk for the details.

Description
ExportPoints copies a specified point file to a folder on the PC. If the file already exists in the folder, it will be overwritten.

Potential Errors

  • File Does Not Exist

    If the specified path does not exist, an error will occur.

  • A Path Cannot be Specified

    If fileName contains a path, an error will occur.

See Also
Dir, LoadPoints, SavePoints, FileExists, FolderExists

ExportPoints Statement Example

Function main
  LoadPoints "robot1.pts"
  :
  SavePoints "robot1.pts"
  If FolderExists("c:\mypoints\") Then
    ExportPoints "robot1.pts", "c:\mypoints\model1.pts"
  EndIf
Fend