I’m so giddy!

I can’t wait for OpenSCAD to finish rendering this new object I’ve fashioned out of a DXF file!

Toolpath was basically:

  • Inkscape importing PNG image
  • Convert image to SVG, reduce colors, simplify lines
  • Export to DXF
  • Incorporate extruded DXF into design

It will be mine.  Oh, yes, it will be mine. 12

 

  1. The precious. []
  2. That’s a red herring.  It’s clearly a Doctor Who themed object. []

What’s the best toolpath for SVG to OpenSCAD?

While I have one selfish motive for wanting a reliable toolpath for going from an SVG to OpenSCAD, I’d also like to do a tutorial on this. 1 2.

  • I can export an SVG from Inkscape to a DXF.
  • I can import that same DXF into OpenSCAD.
  • I can’t render the DXF or extrude it into a solid.

I just can’t seem to make OpenSCAD make heads or tails of that DXF.  Is this a problem with the DXF files produced by Inkscape?  A little bit of Googling tells me that Inkscape v0.48 (the one I’m using) exports in DXF R13 format which includes features that are not well supported by OpenSCAD.  My attempts at finding plugins that will successfully allow Inkscape to expert to DXF R12 format have not been fruitful.

  1. 3D Models with OpenSCAD on Make uses a toolpath that isn’t available in my version of Inkscape
  2. DXF R12 exporter, didn’t work for me
  3. DXF R12 exporter, didn’t work for me either
  4. Yet another DXF R12 exporter that did not work for me
  5. Link suggesting that something called “pstoedit” might be helpful in converting SVG’s to DXF R12’s.
  6. From Photo to Inkscape to DXF to OpenSCAD to MakerBot to Costume Jewelry is an excellent tutorial on the exact toolpath I would like to get working

After MUCH fiddling around I have discovered that the only DXF exporting plugin I can get to work is the one called “Better DXF Output”, NOT to be confused with “Better Better DXF Output.”  Unfortunately, I’ve installed so many of these little plugins I no longer recall exactly which combination of them might actually be working for me.  I’ll do a little investigation and post a short tutorial on how it’s worked for me.

Edit: I’m 85% certain this is the plugin that worked for me.  http://www.bobcookdev.com/inkscape/inkscape-dxf.html

  1. Selfish as in I already have an idea for how I would use this knowledge to make something cool. []
  2. What could it be?  Hint:  It’s related to something that rhymes with “Doctor Who” []

Google Sketchup Plugins

I cannot take credit for these fantastic plugins.  Since posting this originally I have heavily edited it to include all the great Google Sketchup plugins I’m using. 1  Without further ado they are:

  1. skp_to_dxf.zip (5857 downloads ) – This script will allow you to import STL and DXF.  I haven’t used this one as much as the other two.  I think this script was written by someone named Guitar-list.
  2. su2stl.zip (6918 downloads ) – This script will allow you to import/export STL files.  I’ve had pretty good success exporting STL files, but the importing is very hit or miss.  This Ruby script appears to be encrypted, so I don’t know who wrote it and I don’t know enough Ruby to decode it.  This is the best link I could find to it.
  3. polyreduce.zip (5522 downloads ) – This script will reduce the number of polygons and faces in a Sketchup model.  With really complex models (or an underpowered computer) it can take a LONG time to work.  Fair warning.  This great script was written by someone named Whaat.
  4. Update 7/11/2010:   drawhelix13.zip (2056 downloads ) – Script for generating a helix.  Super awesome for creating screw threads. 2  This script was written by someone named Peter Brown, but I cannot find any link to his site or contact information.  Sorry Peter.  I did find some instructions on how to use this plugin.
  5. Update 7/27/2010:  manifold.zip (4239 downloads ) – Script for making a Sketchup object manifold.  I’ve tried it a few times and found that it works slowly on my super under powered machine.  I’ve gotten bored and stopped it before it has completed.  That said, I’m quite confident a more patient person could get it to work no problem.  :)  Manifold was written by someone named TIG who is a prolific creator of Sketchup plugins/Ruby scripts on the Sketchucation forums.  I found this plugin thanks to the Capolight blog – there’s some amazing stuff over there – check it out.
  6. Update 11/25/2010:  jf_stl_importer.zip (4415 downloads ) – Script for importing STL files by Jim of Jim’s Sketchup Plugins.
  7. Update 11/25/2010:  RoundCorner-2.1c.zip (8607 downloads ) – Script for adding rounded or beveled corners to objects.  This plugin by Fredo6 has some detailed installation and usage instructions on the Sketchup Forums pages.  He’s also included instructions as a PDF – Quickcard-RoundCorner-English-v2.1.pdf (812 downloads ) .  This plugin requires Fredo6’s shared code library called  LibFredo6-3.4c.zip (1085 downloads ) with it’s own LibFredo6-User-Manual-English-v3.4-14-Sep-09.pdf (746 downloads ) .
  8. Update 11/25/2010:  FredoScale-2.0i.zip (850 downloads ) – Script for manipulating objects, also by Fredo6 with detailed instructions on the Sketchup Forums.  Also with detailed instructions as a PDF – FredoScale-User-Manual-English-v2.0-28-Mar-09.pdf (685 downloads ) .  There are also tutorial videos here and here.  This plugin requires Fredo6’s shared code library called  LibFredo6-3.4c.zip (1085 downloads ) with it’s own LibFredo6-User-Manual-English-v3.4-14-Sep-09.pdf (746 downloads ) .
  9. Update 11/25/2010: Curviloft-1.0c-and-LibFredo6-3.5c.zip (1033 downloads ) – Script for creating curved surfaces or skins from contours or paths, also by Fredo6 with detailed instructions on the Sketchup Forums.  Although there isn’t any documentation, there are two tutorial videos here and here with an additional tutorial here.  This plugin requires Fredo6’s shared code library called  LibFredo6-3.4c.zip (1085 downloads ) with it’s own LibFredo6-User-Manual-English-v3.4-14-Sep-09.pdf (746 downloads ) .
  10. Update 11/25/2010:  tt_solid_inspector.zip (3958 downloads ) –  Script for detecting problems with solid forms by Thomas Thomassen.
  11. Update 12/27/2010: wafer.rb (3802 downloads ) – Script for converting a Sketchup file into Gcode for cutting 2D shapes using a CNC machine.  I can’t find the name of the author, but this is his website with instructions for how to use his plugin.
  1. I don’t have the author’s names/links handy at the moment, but when I find them I’ll update this page. []
  2. As you can tell, I’ve spent the last six months relentlessly searching for this script… []