PDA

View Full Version : .shp to .dxf


Calvin
27-04-2007, 06:58 AM
New to this. Found your software and think it may be the solution I am looking for.

I have several .shp files in a directory which I want to convert to a single .dxf or .dwg file.

The directory contains a topographic map with each .shp file being a specific layer (ie one .shp is for contours / one .shp file for rivers / etc).
What I want to do is be able to convert these .shp files for a 1:50,000 topo map into a single .dxf file with layers.

From reading the previous forums, I'm going to have to use the Command Line function, but I am not completely familiar with this.

The other twist on this, is that I have to change the projection from Lat/Long to UTM, but this is easily figured out under the settings button.

Is this program able to help me?

GuthCAD Software Support
27-04-2007, 07:31 AM
Calvin,

Hi.

Yes, you need to make a batch command file. At the simplest level it would contain:

/G
shapefile1.shp
shapefile2.shp
shapefile3.shp
/O outfile.dxf

The resultant DXF file would contain 3 Layers called shapefile1, shapefile2, shapefile3 with the translated data for each shapefile on the respective Layers.

The projection information can be provided via additional switches. Consult the user manual chapter 'Command Line Operation | Switches Reference | Projection' for the switches to use. Alternatively, select the desired Projection settings within the user interface and use the 'Export Settings' button to let the software produce the corresponding switch values. Note that a complete set of projection switches should be specified for each shapefile in the command file.

See the sample command file 'BATCH2.A2C' in the Arcv2CAD installation folder for an example of translating several shapefiles to a single DXF output file.

best regards,
Software Support