Eagle goodies... of ULP and copper



So it was time finally to teach Eagle to export the images I want. It turned out there is no need. Someone else had already perceived my wants, and wrote just what I was going to write, but better. :) I also learned a few related things along the way. (Trace outlines for milling, for one. I'll mention these again at the end.)

cam2images.ulp exports images of sets of layers defined in CAM jobs. The trick now is to set up a CAM job that defines the views you want. Read the docs if you don't already know how. (I recall now why I never read them; the docs are simply AWFUL!) Here's a short summary:

** Click the "CAM processor" icon on the toolbar to open the CAM editor.
** Add a job section for each set of layers you want to image.
** Select the layers you want printed.
** Name the output file ".XXXXX" to write to file "<yourboardname>.XXXXX.YYY". Without the quotes, of course, and note the leading '.'. Substitute a meaningful string instead of XXXXX (".TOP" or ".cmp", for example, for top copper). YYY will be replaced with the appropriate extension for the image file type you'll select later.


The ULP ignores the other job information. Which is nice, because it limits what you need to learn about. Alas, it also doesn't honor the "mirror" option, which makes sense since you likewise can't tell Eagle to mirror the image.

Save the CAM file. Run cam2image.ulp. Select the CAM job you created. Set the image options. You'll likely want a different resolution than the default 75 dpi. Click OK.

I changed the default options in the ULP to select monochrome, PNG, and 600 dpi. You might want to do the same, since the idea is to automate your preferences.

=============

Along the way, I also "discovered" these things about Eagle:

outlines.ulp creates a millable outline of your copper on a new layer. Search help for "outlines data" for more info.

ULP operates on the board or schematic by returning a string back to Eagle, which it tries to run as a script. It seems simple enough once someone points it out to you, but easy to miss in the docs, if it's in there at all.

There seems to be no easy way to delete items in ULP or scripts, which might be just as well. There's a lot of potential for harm there. OTOH, it seems not unreasonable to create some objects and then delete them afterward to clean up.


.



Relevant Pages

  • Re: Low cost PCB layout software
    ... has fewer bugs and is cheaper. ... Eagle is not perfect. ... one library to another requires opening the libraries several ... - only the vector font can be used on silkscreen layers. ...
    (comp.arch.embedded)
  • Re: eagle 5
    ... Man kann doch mit der ULP wirklich auf alle Informationen ... Nein, beim Eagle vermisse ich ganz andere Dinge, eigentlich vorallme ... Unterstützung zum Tracelängenabgleich bei schnellen digitalen Bussen ... Unterstützung zum Routen von differenziellen Signalen ...
    (de.sci.electronics)
  • Re: Affordable PCB Layout Software ???
    ... PCB-size and layers. ... That has been greatly increased with the upgrade EAGLE 5. ... The highest license cost $280 to upgrade to EAGLE 5. ...
    (sci.electronics.design)
  • Re: gEDA suite vs my creaky old Protel Client 3.5?
    ... power, signal1, signal2, unused, unused. ... The Xaw version of pcb used to default to grouping some of the layers ... Hope they will do a series of articles on using all of the gEDA facilities, ... What would be nice is a book similar to "Build Your Own Printed Circuit Board", which uses Eagle. ...
    (sci.electronics.cad)
  • Re: gEDA suite vs my creaky old Protel Client 3.5?
    ... The Xaw version of pcb used to default to grouping some of the layers ... Printed Circuit Board", which uses Eagle. ... it serves the purpose of getting people ... livecd with the complete gEDA system on it. ...
    (sci.electronics.cad)