Interesting Tech Projects
Using Inkscape for CNC Designs and DXFs
Update: see this later post before following the instructions below.
I don’t care for most of the DXF editors available. They seem a bit clunky and not too friendly. But I do like Inkscape. Unfortunately it doesn’t export DXF files.
Here is a way of getting Inkscape 0.46 to export DXF files which can then be processed in a CAM program to generate g-code for a CNC machine.
Firstly install Inkscape 0.46. It must be this version.
Next go to this post on BobandEileen.com, right click on the link to “dxf_templates.py” and save it in C:\Program Files\Inkscape\share\extensions.
Next step is to go to another post on BobandEileen.com, right click on the two .py files (“simpletransform.py” and “better_dxf_outlines.py”) and save in the same place. Then do the same for “better_dxf_outlines.inx”.
Restart Inkscape.
Create a drawing and then move it to the bottom left corner of the page. This corner ends up being the origin. If you want your drawing centered on the origin then center it on the corner of the page.
Go to File -> Save As…
From the list of file types in the save dialog window choose “Better DXF Output (*.dxf)” and save the file.
Now open the DXF file in your favourite CAM program, such as CamBam.
Note that you may need to scale the drawing in your CAM program. Even though I had my drawings correctly sized in Inkscape, they seemed to be quite a bit bigger. If anyone knows how to solve that please post a comment.
Print article | This entry was posted by Andy on September 4, 2008 at 10:45 pm, and is filed under CNC, Linux, Windows. Follow any responses to this post through RSS 2.0. Both comments and pings are currently closed. |
Comments are closed.
about 16 years ago
Glad you found the extension useful. One additional note worth mentioning: be sure to convert all objects to paths before writing the DXF file; non-path objects are silently skipped and won’t appear in the DXF file. As for the scaling factor: I use SheetCam to prepare my gcode, and when I open DXF files from Inkscape I have to specify the file uses metric units. I’ve never used CamBam before, but maybe it has a similar option?
about 16 years ago
Bob – thanks for the hints. I’ve used the extension several times now and it works great!
about 16 years ago
Hi,
Unfortunately, when I try and save the .py files I get a HTTP500 internal server error. Have they been moved somewhere else?
I’d really like to try this extension out!
Cheers,
James
about 16 years ago
See: http://www.britishideas.com/2008/09/15/more-on-inkscape-and-dxf-export/
Andy
about 16 years ago
Yeah, that’s where I’m trying to get them from (http://www.bobcookdev.com/inkscape/inkscape-dxf.html). Do you get the same error?
about 16 years ago
Try sending email to bob at bobcookdev dot com.
Andy
about 16 years ago
Hello Andy,
Would you please send me a file of better_dxf_outlines.py ? Because
I could not download this file from the web.
Thank you very much.
Roy
about 16 years ago
Bob has put all four files into a .ZIP. Works like a charm!
about 15 years ago
No need to restart Inkscape after you install any plugins.
Inkscape does not call the file until you dod a Save As…
You can edit the file all day long & still be working inside of Inkscape 0.46
about 14 years ago
I created an update to the other DXF export add-ons for Inkscape. It fixes import problems, supports color, and improves accuracy, among other things.
DXF Export for Inkscape