Discussion:
Automated release script?
(too old to reply)
Oppie
2009-07-17 15:47:05 UTC
Permalink
I am looking to automate the board release process.

Does the CAM processor have command line options that can be run through a
script? I have a cam job pre-defined so, by itself, this is not a big issue.

We also use the BOM-AM-17.ulp bill of material processor to make up the
parts list and SMT placement list. Are there any command line options for
this? Are there any general rules for passing data to a ulp by command line?

tia - Oppie
Richard Hammerl
2009-07-21 09:21:05 UTC
Permalink
Post by Oppie
I am looking to automate the board release process.
Does the CAM processor have command line options that can be run through
a script? I have a cam job pre-defined so, by itself, this is not a big
issue.
You can start eagle with command line options and make, for example,
a batch file for the CAM processor output.
See appendix, chapter 10.3, in the EAGLE manual.
Post by Oppie
We also use the BOM-AM-17.ulp bill of material processor to make up the
parts list and SMT placement list. Are there any command line options
for this? Are there any general rules for passing data to a ulp by
command line?
tia - Oppie
--
Mit freundlichen Gruessen / Best regards
Richard Hammerl
CadSoft Support -- ***@cadsoft.de
FAQ: http://www.cadsoft.de/faq.htm
James Morrison
2010-01-21 05:29:16 UTC
Permalink
Richard Hammerl wrote on Tue, 21 July 2009 05:21
Post by Richard Hammerl
Post by Oppie
I am looking to automate the board release process.
Does the CAM processor have command line options that can be run through
a script? I have a cam job pre-defined so, by itself, this is not a big
issue.
You can start eagle with command line options and make, for example,
a batch file for the CAM processor output.
See appendix, chapter 10.3, in the EAGLE manual.
Richard, is there a way to tell EAGLE to run a CAM job from the command
line? I can't see one. I already have a CAM job with the funky %P
placeholder (which really helps) so I'd rather have to not go and write a
bash script or something for every layer to accomplish the same thing.

Ideally, I'd like to see

eagle -CAM 6l-2s-gerbers.cam design.brd

and that would run the CAM processor, load the CAM configuration
"6l-2s-gerbers.cam" on the design "design.brd".

Cheers,

James.
--
James Morrison ~~~ Stratford Digital

email: ***@eaglecentral.ca
web: http://www.eaglecentral.ca

Specialising in CadSoft EAGLE
* Online Sales to North America
* Electronic Design Services
* EAGLE Enterprise Toolkit
--
Browser access to CadSoft Support Forums at http://www.eaglecentral.ca
Morten Leikvoll
2010-01-21 07:57:09 UTC
Permalink
It would help a lot if the CAM processor had some neat extra features:
-Add a section load a specific project, brd or sch
-Add a section to run a specific ULP (also needs access to sch) or
executable
-Add a section to print to pdf (also needs access to sch)

This way, i think you could fully automate the release process.
Richard Hammerl
2010-01-21 09:46:29 UTC
Permalink
Post by James Morrison
Richard Hammerl wrote on Tue, 21 July 2009 05:21
Post by Richard Hammerl
Post by Oppie
I am looking to automate the board release process.
Post by Oppie
Does the CAM processor have command line options that can be run
through
a script? I have a cam job pre-defined so, by itself, this is not a big
issue.
You can start eagle with command line options and make, for example,
a batch file for the CAM processor output.
See appendix, chapter 10.3, in the EAGLE manual.
Richard, is there a way to tell EAGLE to run a CAM job from the command
line? I can't see one. I already have a CAM job with the funky %P
placeholder (which really helps) so I'd rather have to not go and write a
bash script or something for every layer to accomplish the same thing.
Ideally, I'd like to see
eagle -CAM 6l-2s-gerbers.cam design.brd
and that would run the CAM processor, load the CAM configuration
"6l-2s-gerbers.cam" on the design "design.brd".
James,

no you can't load a CAM job this way.
You have to write a script/batch file that generates one Gebrer file
after the other...

eagle -X -dgerber_rs274x -ogeberfile.cmp test.brd 1 17 18
eagle -X -dgerber_rs274x -ogeberfile.sol test.brd 16 17 18
eagle -X -dgerber_rs274x -ogeberfile.plc test.brd 20 21 25


and so on....
--
Mit freundlichen Gruessen / Best regards
Richard Hammerl
CadSoft Support -- ***@cadsoft.de
FAQ: http://www.cadsoft.de/faq.htm
Chuck Huber
2010-01-21 17:43:18 UTC
Permalink
Post by Richard Hammerl
Post by James Morrison
Richard Hammerl wrote on Tue, 21 July 2009 05:21
Post by Oppie
I am looking to automate the board release process.
Post by Oppie
Does the CAM processor have command line options that can be run
through
a script? I have a cam job pre-defined so, by itself, this is not a big
issue.
James,
no you can't load a CAM job this way.
You have to write a script/batch file that generates one Gebrer file
after the other...
eagle -X -dgerber_rs274x -ogeberfile.cmp test.brd 1 17 18
eagle -X -dgerber_rs274x -ogeberfile.sol test.brd 16 17 18
eagle -X -dgerber_rs274x -ogeberfile.plc test.brd 20 21 25
and so on....
You could combine this with a batch script that parses the .cam file to
produce a temporary shell script that then gets executed.

Maybe adding an "execute ULP" would be a good suggestion for a command
line option. I can see where the release process might bump a global
attribute "REVISION". There's no way to do this from the command line.

Of course, when XML .sch and .brd files are available, it'd be easy to
parse that to pull pertinent data out of it.

Enjoy,
- Chuck

Loading...