Sick of Beige openscad script and generated kicad footprint

Standard PCB templates and project cases

Sick of Beige openscad script and generated kicad footprint

Postby TomKeddie » Fri May 08, 2015 12:28 pm

Here is an openscad script to generate sick of beige models. You can then export them to DXF for laser cutting.

https://github.com/TomKeddie/openscad-scripts/tree/master/sick-of-beige

Image

I'm slowly discovering the joys of scripted CAD using openscad, I guess I just don't like GUIs.
Last edited by TomKeddie on Fri May 15, 2015 8:46 am, edited 1 time in total.
TomKeddie
Full Member
Full Member
 
Posts: 183
Joined: Tue Dec 18, 2012 3:26 pm

Re: Sick of Beige openscad script

Postby TomKeddie » Sun May 10, 2015 10:23 am

I added pre-generated dxf files for all sizes to the above. They seem to load fine in our (somewhat picky) lasercad software that drives our cutter. You mileage may vary, test on a piece of scrap.
TomKeddie
Full Member
Full Member
 
Posts: 183
Joined: Tue Dec 18, 2012 3:26 pm

Re: Sick of Beige openscad script

Postby TomKeddie » Fri May 15, 2015 8:45 am

I've gone a bit further and written a python script to convert the dxf files to kicad footprint files. The script can be found at https://github.com/TomKeddie/python-scr ... scad2kicad the generated footprint files at https://github.com/TomKeddie/openscad-s ... ige.pretty

It turns out to be fairly easy because, looking at the openscad source, it only generates line segments in its dxf export. Unfortunately it does not export color information so I can't do multiple layers but I'll work on that next.

This of course opens up the possibility of generating any crazy pcb shape you want with openscad.
TomKeddie
Full Member
Full Member
 
Posts: 183
Joined: Tue Dec 18, 2012 3:26 pm


Return to Sick of Beige