|

Update (2010-09-01): I've fixed a bug based upon a report from commenter blackfox. Download the new version of Big Blue Saw's DXF Export For Inkscape Here.
After the last article on using Inkscape, I received some feedback in the comments section that let me know that DXF export wasn't available for all versions of Inkscape. After a little research, I came across a the free third party Inkscape extensions for DXF export Better DXF Export and Better Better DXF Export.
But I found that these two solutions lacked a few important features:
- There was a Python version incompatibility that caused the export to crash on Linux.
- They only supported metric output as the measurement units.
- When converting curves to line segments, the line segments were quite large, giving the curves a rough appearance.
- Color output was unsupported.
- They would produce layer names which were incompatible with many CAD packages.
With these problems in mind, I made a few modifications to Better Better DXF Output to create Big Blue Saw's DXF Export For Inkscape. It features everything from its predecessor, plus the following features:
- It has been tested on Fedora Linux, as well as Windows Vista.
- The units are now output as inches by default.
- It creates finer line segments, which is important for achieving the highest accuracy possible.
- The lines in the output file will be given the closest matching color in the DXF color palette.
- Spaces in layer names will be replaced with the underscore character.
To install:
- Close down Inkscape.
- Download the ZIP file containing Big Blue Saw's DXF Export For Inkscape.
- Unpack the ZIP file into your Inkscape extensions directory: typically C:\Program Files\Inkscape\share\extensions on Windows or /usr/share/inkscape/extensions on Linux. (Mac users, help me out here.) You will need to overwrite the file simpletransformations.py with the version included in the ZIP archive.
- Restart Inkscape.
To use after you've installed Blue Saw's DXF Export For Inkscape:
- Create your drawing as normal.
- Ungroup all items by selecting everything (Ctrl-A or Edit | Select All from the menu) and then ungrouping repeatedly (Shift-Ctrl-G or Object | Ungroup) until all groups are broken apart.
- Convert all objects to paths. You can do this items by selecting everything (Ctrl-A or Edit | Select All from the menu) and then pressing Shift-Ctrl-C or choosing Path | Object to Path from the menu.
- Choose File | Save As from the menu. In the dialog box that appears, choose "Big Blue Saw DXF Output" and click the Save button.

One more thing, for those reading this far. Most of the time when I, personally, want to get a DXF from a file loaded in Inkscape, I save it as an EPS, and convert to DXF using the pstoedit package. This preserves splines and curves, which is nice, but requires the use of a command-line tool, which isn't for everyone.
Download Big Blue Saw's DXF Export For Inkscape Here
|