Is it possible to initialize the importer for multiple files?
This approach only processes Transformer_point2importer.Init("SHP", "C:\\Data\\Transformer_point1.shp");importer.Init("SHP", "C:\\Data\\Transformer_point2.shp");
The other approaches listed below throw exceptionsimporter.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=FalseDriver:FDO_ARC_DEGREES_PER_EDGE=5
Any suggestions would be most appreciated.
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):
foreach string shapeFileName in shapeFileNames
//Other importer configurations
//Do the importing
Thanks Norman, that is what I was suspecting.
Have a good day!
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.