Create gerbers relative to board file?

Create gerbers relative to board file?

Anonymous
Not applicable
672 Views
3 Replies
Message 1 of 4

Create gerbers relative to board file?

Anonymous
Not applicable

I keep my CAM files separate from projects folders so when i use different CAM file for different projecs i always struggle with paths.

 

And the path in the CAM is actually path relative to CAM file and not relative to board file. Is there any way to "grub" the .brd's relative path?

 

Would love to have something like this "%THIS_BOARD/%N.GTL"

 

where %THIS_BOARD is the currently loaded board into a CAM.

 

p.s. i'm using Eagle 7.5

Reply
Reply
0 Likes
Accepted solutions (1)
673 Views
3 Replies
Replies (3)
Message 2 of 4

rachaelATWH4
Mentor
Mentor
Accepted solution

@Anonymouswrote:

I keep my CAM files separate from projects folders so when i use different CAM file for different projecs i always struggle with paths.

 

And the path in the CAM is actually path relative to CAM file and not relative to board file. Is there any way to "grub" the .brd's relative path?

 

Would love to have something like this "%THIS_BOARD/%N.GTL"

 

where %THIS_BOARD is the currently loaded board into a CAM.

 

p.s. i'm using Eagle 7.5


In EAGLE v7 and v8 up to version 8.5 the paths in the CAM file could contain a %P which made it be relative to the loaded board file.

 

So for example if you had folders Manufacturing/Gerber/ in same folder as your board then you could do %P/Manufacturing/Gerber/%N_cmp.gbr

 

Best Regards,


Rachael

Reply
Reply
Message 3 of 4

Anonymous
Not applicable

i wish i could find list of those variables...

Reply
Reply
0 Likes
Message 4 of 4

rachaelATWH4
Mentor
Mentor

@Anonymouswrote:

i wish i could find list of those variables...


It's in the built in help in EAGLE in the Generating Output -> CAM Processor -> Output File section.

 

For ease here is the part relating to these placeholders:

 

Placeholders
The output file name can either be entered directly, or can be dynamically composed using placeholders. A placeholder consists of a percentage character ('%') followed by a letter. The following placeholders are defined: 

%D{xxx} a string that is inserted only into the data file name
%E the loaded file's extension (without the '.')
%H the user's home directory
%I{xxx} a string that is inserted only into the info file name
%L the layer range for blind&buried vias (see below)
%N the loaded file's name (without path and extension)
%P the loaded file's directory path (without file name)
%% the character '%'

For example, the output file definition 
%N.cmp%I{.info} would create boardname.cmp for the data file and boardname.cmp.info for the info file (in case the selected output device generates an info file). 

Best Regards,

 

Rachael

Reply
Reply