EAGLE Tools Revisited

I revisited the tools I previously put together to process EagleCAD files for manufacture. I extended my export tools to generate all the gerbers required for most major board houses (like Advanced Circuits) and PNGs required for Fab modules (used by the Media Lab’s Modella).

As icing on the cake, I also wrote a python script to generate csv parts lists that can be easily uploaded to Digikey.

So, the scripts (a Makefile and a python script, eagle_parts) can export:

These tools will work best under Unixy operating systems, maybe someone can get it to work under Cygwin, I’ve used them under OSX. They depend on a few pretty usual command line tools including GNU make, git, and python and a few unusual tools like EAGLE, gerbv, and imagemagick.

All of these tools should be easy to install via repositories (like macports, fink, apt etc). The only wrinkle under OSX is making EAGLE usable from the command line which can be easily enabled with a softlink

ln -s /usr/bin/eagle /Applications/EAGLE/EAGLE.app/Contents/MacOS/EAGLE

To install the tools, first grab a copy of my eagle_tools git repo

git clone git://bardagjy.com/eagle_tools

In my repo, you’ll get three directories; cam, dru, and export. In the cam directory I’ve shared my Advanced Circuits and Barebones cam files. In the dru directory I’ve shared my design rules for the Modella and Advanced Circuits. In the export directory is a sample makefile and a python script eagle_parts for exporting Digikey compatible csv parts lists.

To use the export tools, copy the makefile into your project directory and change the PROJECT variable to the name of your project. I assume the your .brd and .sch files are the name of your project, though this is not enforced by EAGLE (I should probably fix this in the future).

I prefer to make a softlink from my git repo to /usr/bin

ln -s eagle_tools/export/eagle_parts /usr/bin/eagle_parts

While I’m at it, I link the repo cam and dru files to the system installed cam and dru files.

That’s it! Feel free to ask questions in the comments.



6 Comments

  1. […] I have posted an automated tools for gerber export here […]

  2. Adrian wrote:

    This sounds pretty cool.
    Unfortunately your git repo is not working…git clones fail with a connection timed out. Might be better off hosted on github.

    • andy wrote:

      Adrian, sorry, I updated my git urls. Try $git clone git://git.bardagjy.com/eagle_tools

      I do update it fairly regularly to keep up with changes to gerbv and imagemagik. Sorry about the url mixup, hope you give it a try!

  3. Adam Setapen wrote:

    Nice! I stumbled on this today.

    You switched the syntax of the link command. But I still love you.

  4. atommann wrote:

    Hi Andy,

    I want to try your eagle tools, but the repository does not work git://git.bardagjy.com/eagle_tools

Leave a Reply