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 |
ASC |
ModuleID |
integer |
Numeric ID of the module to be exported.
0=entire viewer window 2=default |
Example
This example shows how to export an ASC file with the various options.
CommandApi.Construct("Export")
CommandApi.Option("GuiEnabled", "False")
CommandApi.Option("ClearOptions", "False")
CommandApi.Option("Filter", "asc")
CommandApi.Option("Path", "C:/Path/To/Export/file.asc")
CommandApi.Option("PersistOptions", "True")
CommandApi.Option("ModuleId", "2")
CommandApi.Do()
This example shows how to export an AIG file with the various options.
CommandApi.Construct("Export")
CommandApi.Option("GuiEnabled", "False")
CommandApi.Option("ClearOptions", "False")
CommandApi.Option("Filter", "asc")
CommandApi.Option("Path", "C:/Path/To/Export/file.aig")
CommandApi.Option("PersistOptions", "True")
CommandApi.Option("ModuleId", "2")
CommandApi.Do()
This example shows how to export an AGR file with the various options.
CommandApi.Construct("Export")
CommandApi.Option("GuiEnabled", "False")
CommandApi.Option("ClearOptions", "False")
CommandApi.Option("Filter", "asc")
CommandApi.Option("Path", "C:/Path/To/Export/file.agr")
CommandApi.Option("PersistOptions", "True")
CommandApi.Option("ModuleId", "2")
CommandApi.Do()
This example shows how to export a GRD file with the various options.
CommandApi.Construct("Export")
CommandApi.Option("GuiEnabled", "False")
CommandApi.Option("ClearOptions", "False")
CommandApi.Option("Filter", "asc")
CommandApi.Option("Path", "C:/Path/To/Export/file.grd")
CommandApi.Option("PersistOptions", "True")
CommandApi.Option("ModuleId", "2")
CommandApi.Do()
Used by: Export
See Also