# \[Tip\] Converting OpenSCAD files easily to STEP with FreeCAD

**URL:** <https://forum.lulzbot.com/t/tip-converting-openscad-files-easily-to-step-with-freecad/228>\
**Category:** Software\
**Created:** [August 1, 2013, 6:44am UTC](https://forum.lulzbot.com/t/tip-converting-openscad-files-easily-to-step-with-freecad/228 "2013-08-01T06:44:52Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Gemini64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.lulzbot.com/gemini64/32/8_2.png) [@Gemini64](https://forum.lulzbot.com/u/Gemini64)\
**Post date:** [August 1, 2013, 6:44am UTC](https://forum.lulzbot.com/t/tip-converting-openscad-files-easily-to-step-with-freecad/228/1 "2013-08-01T06:44:52Z")

</div>

Hey guys,

I’m guessing I am not the only one who simply won’t put any energy into trying to learn OpenSCAD. As a CAD user with more than 15 years of experience working with a few 2D and 3D CAD packages (among them the ubiquitous AutoCAD and parametric programs such as Autodesk Mechanical Desktop, Solid Edge and SolidWorks), I find it extremely hard to understand how anyone can design by programming lines of code, even less how can anyone analyze and modify OpenSCAD parts made by others.

A couple of guys have worked on an OpenSCAD module for [FreeCAD](http://www.freecadweb.org/) and it was first included in the 0.13.1828/1830 stable version which came out last February. But until now I hadn’t used it much.

Well I tackled it in the past week and found out you can get surprisingly good results. The OpenSCAD importer reads .csg files or .scad source files and generates a CSG tree. I don’t like CSG work flow as I find it too primitive and a hassle to edit, but it beats the hell out of trying to figure out OpenSCAD syntax, or modeling the part from scratch using the STL as reference (which I had been doing until now).

For example here’s the [AO-101 x-end-idle\_ACME.scad](http://downloads.lulzbot.com/lulzbot/AO-101/hardware/printed_parts/source/AO-x-end-idle_ACME.scad) file in OpenSCAD:

 ![ao-101_x-end-idle_scad.png](https://us1.discourse-cdn.com/flex020/uploads/lulzbot/original/1X/bb7ba5d58d918648b701a41ab79b726f7b5214e8.png)  
And here it is, converted into a B-rep solid in FreeCAD 0.14.2362 (latest development version in which the OpenSCAD has benefited from a few fixes):  
 ![ao-101_x-end-idle_freecad.png](https://us1.discourse-cdn.com/flex020/uploads/lulzbot/original/1X/99cf1d93d64d2928f7dfcb300cf5d81d1583d8ac.png)  
And all I had to do was open the scad file, that’s it! ![:ugeek:](https://us1.discourse-cdn.com/flex020/uploads/lulzbot/original/1X/60aa0bc609d6c1cf1242a151e9c1410e4f9e6e44.gif "Uber Geek")

I also used the OpenSCAD import module to convert the Prusa3-vanilla parts to FreeCAD (I’m building the assembly just for fun ![:mrgreen:](https://us1.discourse-cdn.com/flex020/uploads/lulzbot/original/1X/442e459c5ced45cb70e8a05e77e07cea6fee4928.gif "Mr. Green") ) and only a few parts out of the lot failed to import. There are a few OpenSCAD functions that are not supported, like the hull function or the Minkowsky transform. Also, don’t even try to load those gears, FreeCAD will crash. So it is not fully functional yet, but pretty useful already.

I’ll explain how to configure FreeCAD for OpenSCAD import in the next post.

---

_[View the full topic](https://forum.lulzbot.com/t/tip-converting-openscad-files-easily-to-step-with-freecad/228)._
