30 Jun '14, 11pm
Extending EagleCAD With Python
Lately I’ve been spending my free time working on a design with rotational symmetry. If it was symmetric under 90 or 180 degree rotation, it’d be simple and easy in most CAD software, but it’s not (it’s symmetric under 72 degree rotations). As a result, I’ve actually been generating my brd and sch directly from Python. I open it in EAGLE just to get a visual on how my code is doing, but literally every bit of the layout and routing is done from Python. It’s much easier with for-loops and polar coordinates. It occurs to me now that I should whip up a script to render the brd and sch files (without EAGLE). I could open source it as a complete text based CAD package, which produces fully EAGLE-compatible documents. Design rule checking doesn’t seem that difficult, either. It might be very computationally intensive if written naively, but I don’t know.