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 |
E00 |
AreasToCurves |
1 or 0 |
Whether to set all polygons to polylines. 0 does not set all polygons to polylines. 1 does. |
WhichAreas |
1 or 0 |
Whether to import all areas. 0 imports all areas. 1 imports none. |
WhichLines |
0, 1, 2 |
Whether to import all lines. 0 imports all lines. 1 imports freestanding lines. 2 imports no lines. |
WhichText |
-2, -1, or positive integer |
-2 imports all text. -1 imports no text. Positive integers tells Voxler which text group to import. |
Example
This example shows how to import an E00 file with the various options.
CommandApi.Construct("Import")
CommandApi.Option("GuiEnabled", "False")
CommandApi.Option("Filter", "e00")
CommandApi.Option("Options", "ApplyViewAngle=1;AreasToCurves=0;ProjectionLatLong=1;SkipPaperspace=0;WhichAreas=0;WhichLines=0;WhichNodes=0;WhichText=1")
CommandApi.Option("Path", "C:/Path/To/Import/file.e00")
CommandApi.Option("PersistOptions", "True")
CommandApi.Do()
Used by: Import
See Also