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 |
PLT |
AreasToCurves |
1 or 0 |
Whether to set all polygons to polylines. 0 does not set all polygons to polylines. 1 does. |
Example
This example shows how to import a Golden Software PLT file with the various options.
CommandApi.Construct("Import")
CommandApi.Option("GuiEnabled", "False")
CommandApi.Option("AutoConnect", "True")
CommandApi.Option("ClearOptions", "False")
CommandApi.Option("Filter", "plt")
CommandApi.Option("Options", "AreasToCurves=1")
CommandApi.Option("Path", "C:/Path/To/Import/file.plt")
CommandApi.Option("PersistOptions", "True")
CommandApi.Do()
Used by: Import
See Also