gxExportProject (string document, string filename, struct tGXExportFlags)

Exports a project to a file,

Parameters:

document - name of the document to be exported.
filename - name of the file. Use a slash '/' for directories, on all platforms!
tGXExportFlags - flags controlling the export process. The following flags are available:

boExportBufferInsteadReferences Export the buffer content to the project. When false, only files associated to buffers are stored in the project file, but not the buffer contents when you've edited or modified them. Default = true.
boExportStandaloneParts Everything needed for stand alone operation is exported. Set this flag when you plan to create projects capable for stand alone operation. Default = false.
boExportStandalonePlayer Export the device programmer firmware to the project. Default = false.
boExportArchive Compress the project. Default = false.
boPasswordProtect Not yet supported.
boSkipErrors Save the project even when something goes wrong. Errors (f.i. file read or write errors) are displayed in this case, but you still have a project file which contains your data. Default = false.

Speed:

Slow

Remarks:

During the export process, the script outputs information about the progress.

Example:

tGXExportFlags flags;
// Flags have default settings.
flags.boExportBufferInsteadReferences = true;
flags.boExportStandaloneParts = true;
gxExportProject("document1", "demo1.gxx", flags);

See also:

gxImportProject, gxStartAction

► latest version online