Esri Shapefile [.SHP] Import Automation Options
Since the Import Options dialog is not displayed when the program is driven from an automation script, an options string can be specified in the script. The string consists of comma-separated parameters, which specify the behavior of the various import options. A typical example would be:
"Defaults=1,AreasToCurves=1"
This would first set all import options to their default values, then set the AreasToCurves option value to one, which would specify that any areas imported be converted to closed curves.
Option | Action | Default |
Defaults=1 | Set all options to their default values | No |
ForgetOptions=1 | Don't remember options for later use | No |
AreasToCurves=1 |
Convert area objects to closed curves |
No |
PrimaryIDField=n | Specify that field number n of each record in the optional DBF database will be assigned to the primary ID string of each object that is imported from the SHP input file. If the SHP file is not accompanied by a DBF file, this option has no effect. |
0 |
SecondaryIDField=n | Same as above, except applies to the secondary ID. | 0 |
See Also
Esri Shapefile File Description