When the program is driven from an automation script, an options string can be specified in the script that acts as the import options dialogs do in the program. The string consists of comma-separated parameters, which specify the behavior of the various import options.
Parameter |
Type |
Description |
Filter |
string |
CPS |
Example 1
This example shows how to import a CPS3 ASC file with the various options.
CommandApi.Construct("Import")
CommandApi.Option("GuiEnabled", "False")
CommandApi.Option("ProgressEnabled", "False")
CommandApi.Option("UndoRedoEnabled", "True")
CommandApi.Option("AutoConnect", "False")
CommandApi.Option("ClearOptions", "False")
CommandApi.Option("Filter", "cps")
CommandApi.Option("Path", "C:/Path/To/Import/file.asc")
CommandApi.Option("PersistOptions", "True")
CommandApi.Do()
Example 2
This example shows how to import a CPS3 file with the various options.
CommandApi.Construct("Import")
CommandApi.Option("GuiEnabled", "False")
CommandApi.Option("ProgressEnabled", "False")
CommandApi.Option("UndoRedoEnabled", "True")
CommandApi.Option("AutoConnect", "False")
CommandApi.Option("ClearOptions", "False")
CommandApi.Option("Filter", "cps")
CommandApi.Option("Path", "C:/Path/To/Import/file.cps3")
CommandApi.Option("PersistOptions", "True")
CommandApi.Do()
Example 3
This example shows how to import a CPS3 DAT file with the various options.
CommandApi.Construct("Import")
CommandApi.Option("GuiEnabled", "False")
CommandApi.Option("ProgressEnabled", "False")
CommandApi.Option("UndoRedoEnabled", "True")
CommandApi.Option("AutoConnect", "False")
CommandApi.Option("ClearOptions", "False")
CommandApi.Option("Filter", "cps")
CommandApi.Option("Path", "C:/Path/To/Import/file.dat")
CommandApi.Option("PersistOptions", "True")
CommandApi.Do()
Used by: Import
See Also