Greetings,
Is it possible to initialize the importer for multiple files?
This approach only processes Transformer_point2
importer.Init("SHP", "C:\\Data\\Transformer_point1.shp");
importer.Init("SHP", "C:\\Data\\Transformer_point2.shp");
The other approaches listed below throw exceptions
importer.Init("SHP", "C:\\Data\\*.*");
importer.Init("SHP", "C:\\Data\\*.SHP");
Don't know if the MapImport.ini is used but it is set as follows:
;This section determines how you want to import Shape files.
[SHP]
File=MultiSelect
;File=SingleSelect
;File=False
Driver:FDO_ARC_DEGREES_PER_EDGE=5
Any suggestions would be most appreciated.
Thanks,
Brek
Whith multiple shape files to import/export, I think, you need to do it one at a time in a loop (I have an app that export Acad entities to multiple shape files that way):
pseudo-code:
foreach string shapeFileName in shapeFileNames
{
importer.Init("SHP",shapeFileName)
//Other importer configurations
//Do the importing
}
Norman Yuan