I am interested in being able to mill printed circuit boards with a cnc milling machine. To do that I need a .dxf file. Currently, the suite of software I am using, gEDA, does not yet have the ability to export the pcb artwork to dxf.
So, I worked out a method using Inkscape and pstoedit. I wrote a post on it at cnczone.com:
http://www.cnczone.com/forums/showthread.php?t=97677
A brief synopsis of what I do goes like this:
From the gEDA/pcb program, I export the finished artwork as a .ps file.
I then load the .ps file into Inkscape, 'Ungroup' it, 'Stroke to Path' it, and 'Union' it.
I save it as a .ps file.
Then I use the command line program pstoedit to run this command on the file: $pstoedit -f dxf_s <in>.ps <out>.dxf
What I am left with is a very good outline in .dxf format of the copper traces, pads, and polygons.
The .dxf file can now be loaded into a CAM program and how the copper is milled can be worked out.
***
There are two slight problems I see happening in Inkscape, though.
The first one is with the 'Stroke to Path' command. It changes the shape of the rounded ends of the lines (strokes). The perfect half circles at the end of each line are slightly altered in seemingly random ways. Here is an example of a line made in gEDA/pcb, exported as a .ps file, loaded into Inkscape, and given the 'Stroke to Path' command:
Before:

After:

As you can see the ends of the lines alter the shape of the 45 degree bend. At first I wondered if it could be an error in the way that gEDA/pcb creates the data contained in the .ps file. But, I did some small experiments and I found that lines (strokes) that are created in a new Inkscape .svg file exhibit the same type of errors when given the 'Stroke to Path' command. Here is an example of a green line drawn in Inkscape showing its nodes:

And here is the same green line after the 'Stroke to Path' command:

You can see that the ends are altered, especially on the right end of the line. On the left end the nodes are not spaced equally.
These slight alterations to the ends of the lines show up in the final .dxf file, as well. Here are some close-ups in qcad of what the pcb artwork outlines look like after being converted from .ps to .dxf using 'pstoedit':


The perfect 45 degree rounded corners created in gEDA/pcb are now quite lumpy and bumpy. My hope is that the Inkscape developers improve the results of the 'Stroke to Path' command. Perhaps in future updates, Inkscape could provide the user with some control over increasing the resolution of the conversion from stokes to paths.
***
Secondly, Inkscape's ability to save files in the .dxf format could be improved, in my opinion. The circles and curves are not reproduced well enough. I do not know how Inkscape does the conversion to .dxf. But, if it is using pstoedit as a backend, have the developers considered using the '-f dxf_s' option in pstoedit? It gets a much better result than '-f dxf'. The 'dxf_s' option handles splines and curves better, and produces a more accurate result.
Let me know what you think.
Thanks,
Dave