ImportLightigoLibs

Declaration: ImportLightigoLibs (FName: string; Feedback: boolean; dx, dy: double; MirrorX, MirrorY: boolean): integer;
Imports a Lightigo LIBS data file (extension .libsmeta). The parameter FName specifies the full file path of the data file.

The parameter Feedback controls whether a visual feedback is provided during the import of the data. Please note that unless the script progress bar is already visible you have to make it visible before calling ImportLightigoLibs, otherwise the feedback will not be displayed. You can activate the script progress bar by calling the function ScriptBar(0).

The parameters dx and dy specify the distance of the individual laser shots in x and y direction (in Ám). The parameters MirrorX and MirrorY control whether the respective axis is to be mirrored.

The function returns the following error codes:

 0 ... everything is OK
-1 ... the file FName does not exists
-2 ... meta data syntax error
-3 ... cannot find binary data file
-4 ... insufficient memory (paging will slow down system) (warning only)
-5 ... cannot import due to lack of memory (32 bit limit = 2 GB)