When the program is driven from an automation script, an options string can be specified in the script that acts as the export options dialogs do in the program. The string consists of comma-separated parameters, which specify the behavior of the various export options.
Parameter |
Type |
Description |
Filter |
string |
GXF |
ModuleID |
integer |
Numeric ID of the module to be exported.
0=entire viewer window 2=default |
Gxf_Compression |
0, 1, 2, 3, 4, 5 |
Specifies the number of base-90 digits to use for compression. 0 = no compression (default) which creates a readable text output whose significant figures are controlled by the GXF_SigFigs option 1 = very low compression precision approximately 1e-10 2 =- low compression precision approximately 1e-8 3 = medium compression precision approximately 1e-6 4 = high compression precision approximately 1e-4 5 = very high compression precision approximately 1e-2 |
Gxf_SigFigs |
integer |
The number of significant figures used when outputting ASCII floating point numbers. Default = 14. |
Example
This example shows how to export an GXF file with the various options.
CommandApi.Construct("Export")
CommandApi.Option("GuiEnabled", "False")
CommandApi.Option("ClearOptions", "False")
CommandApi.Option("Filter", "gxf")
CommandApi.Option("Options", "Gxf_Compression=0; Gxf_SigFigs=14")
CommandApi.Option("Path", "C:/Path/To/Export/file.gxf")
CommandApi.Option("PersistOptions", "True")
CommandApi.Option("ModuleId", "2")
CommandApi.Do()
Used by: Export
See Also