I wrote in here of an extremely convoluted way of exporting Alibre Design files into SVG for laser cutting with Ponoko. There were a couple of problems…and of course after some googling there was a better way!
(Note this is a generic DXF to SVG conversion and is applicable to many other CAD programs such as AutoCAD, Unigraphics, Catia, SolidWorks etc and is not limited to Alibre Xpress)
First of all what were the problems?
Firstly, as I said, its convoluted and tedious…
Secondly, by looking at the exported SVG files carefully I noticed the flightofideas plugin converted curves to polygons. This could become a problem on parts that need to fit snuggly together. I’ve been bitten by poor approximation of curves/splines to polygons before so I’ll hate to make the same mistake again.
Kabeja is an open source utility/plugin/library for converting DXF’s to various output formats including (mainly) SVG! You can read more about it on the main webpage but it has allowed me to open DXF’s exported from Alibre in Inkscape 🙂
Yup, thats right, its an Inkscape Plugin too. But i don’t use it that way, I use the command line/GUI version for some bizarre reason. Yes I’m just weird.
To use it from the command line, simply go to the directory you unzipped your Kabeja to (it should contain a launcher.jar file) and type :-
java -jar launcher.jar -nogui -pipeline svg yourfilein.dxf yourfileout.svg
Or if you prefer it with the GUI, just type :-
java -jar launcher.jar
Of course you need a JRE installed, just download one from Sun if you don’t have one…
BUT THERE IS A CATCH!~~~
If you’re using this for the same reason I am, i.e. to get a decent SVG out for a laser cut, do NOT open the resultant SVG file from Inkscape! I scratched my head long and hard, googled for hours to find out why Kabeja scaled the SVG to fit to an portrait A4 sheet…with no results. Why? Its not Kabeja’s fault really.
IMPORT the resultant SVG file into Inkscape. You can even import it onto one of Ponoko’s starter kit for a headscape! Happy Ponoko’ing!