PDA

View Full Version : Batch shp to dxf


cameraoperator
16-02-2005, 01:43 AM
Ok new user to this program and my situation is this. I have roughly 30 directories each with 75-200 shape files needing to be converted to dxf. I was wondering if there was a way of running a batch for each directory. Closest thing I found in the manual was batching 3 or 4 files at time. Thanks in advance for any info and great program, already saving me mass ammounts of time over using the arview converter.

Ryan

GuthCAD Software Support
16-02-2005, 02:13 AM
Hi Ryan,

The only way to do it is per a batch command file.

Use the same format as the example batch of 3 or 4 files. You can generate a complete list of the files to be translated by using say at the command line:

DIR c:\dir1\*.shp > bigbatch.a2c
DIR c:\dir2\*.shp >> bigbatch.a2c
...
...
DIR c:\dir75\*.shp >> bigbatch.a2c

Then edit the output into a list of the shapefiles, with required switches.

Or if all the directories are off of a particular root directory (e.g. called c:\shapefiles.), you could create the directory listing in one go with:

DIR /S /B c:\shapefiles\*.shp > bigbatch.a2c

best regards,
Paul G