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 |
DEM |
BlockType |
0, 1, 2 |
Defines the data block type. BlockType=0 -- 15-minute block BlockType=1 -- 7.5-minute block BlockType=2 -- Other block type. |
ModuleID |
integer |
Numeric ID of the module to be exported.
0=entire viewer window 2=default |
SectNum |
integer |
The section indicator. For 15-min block it must be >=1 and <=8. For 7.5-min block it must be >=1 and <=32. |
XYUnitCode |
0, 1, 2, 3, 4 |
The unit code of the X and Y coordinate units. 0=radians 1=feet 2=meters 3=arc-seconds 4=degrees |
ZUnitCode |
1, 2 |
The unit code of the Z coordinate units. 1=feet 2=meters |
Example
This example shows how to export an DEM file with the various options.
CommandApi.Construct("Export")
CommandApi.Option("GuiEnabled", "False")
CommandApi.Option("ClearOptions", "False")
CommandApi.Option("Filter", "dem")
CommandApi.Option("Options", "BlockType=1; SectNum=1; XYUnitCode=1; ZUnitCode=1")
CommandApi.Option("Path", "C:/Path/To/Export/file.dem")
CommandApi.Option("PersistOptions", "True")
CommandApi.Option("ModuleId", "2")
CommandApi.Do()
Used by: Export
See Also