Drill file scale is off using gerbv and Eagle

I’m sorry to post such a newbie question, but I’ve searched the forums and the web and I can’t seem to find a solution.

I’ve designed my board in Eagle and output it according to the Eagle tutorial on the batchPCB site. When I open my file in gerbv, however, the drill file is scaled up by a factor of 10 (i.e. instead of holes being 0.1" apart, they’re 1" apart). I’ve tried manually editing the files, as well as editing the eagle.def file like I read in some forum posts here, but nothing seems to work.

When I uploaded my files to freedfm.com it found no errors, but I’m not sure exactly what they check. I’m wondering if this is a problem with my files, or with how gerbv is reading them, but since I’m using a Mac I don’t know of any other Gerber Viewer I could try.

Anyone have any ideas?

For the record, here’s the DRD file output:

%
M48
M72
T01C0.0400
%
T01
X3513Y2512
X3513Y3512
X4513Y3512
X4513Y2512
X5513Y2512
X5513Y3512
X5513Y7012
X6513Y7012
X2513Y7012
X2513Y8012
X2513Y9012
X2513Y10012
M30

Greetings (no name supplied),

The problem is the import of the gerbers.

You need to make sure the software you are using to veiw the gerbers is set to import your files correctly.

At the moment, it looks as if the software is removing the leading zeros from the file, which would cause the error you are reporting.

I hope this helps,

James L

James,

I appreciate the response! Thank you!

From what I can tell gerbv is a fairly commonly used Gerber Viewer on *nix machines, and, as far as I can tell the only option on OS X; how do others get it to display the drill files correctly?

Jonathan

A. Square:
James,

I appreciate the response! Thank you!

From what I can tell gerbv is a fairly commonly used Gerber Viewer on *nix machines, and, as far as I can tell the only option on OS X; how do others get it to display the drill files correctly?

Jonathan

Jonathan,

I’m sorry I mis-stated the problem.

By the looks of the file, the gerber is being exported without any leading/trailing zeros. If you notice there are not any decimal points in the listings. The gerber viewer is confused as to the nomenclature of the location.

Is the location (for example the first line after T01)

3513 inches x 2512 inches ? or

0.3513 inches x 0.2512 inches ? or

3.513 inches x 2.512 inches

as you can see all of these are worlds apart.

You didn’t say whether this file was inches or mm either.

Gerber viewers put the decimal in depending on the import parameters. There has to be options somewhere to choose how many places to the left and right of the decimal to expect.

I do not use Gerber Viewer for I am on a Windoze machine.

Wish I could help more,

James L

http://www.lilbro.mosquito.net.nz/image … .%2007.jpg

Thanks again for clarifying, James.

If I manually go in to my drd file and change all the “X3508Y2512” to “X0.3508Y0.2512” everything lines up prefectly in gerbv.

So, I guess my question now is, which do I submit to BatchPCB, the original output, or the modified one? I suspect it’s the original output, since that is what’s generated by BatchPCB’s own Eagle CAM file.

I know they mention something about the leading and trailing zeros when uploading; should I just choose the “Eagle” option and the good folks on the other end will figure it out?

And I’d still love to know how to tell gerbv to display the unmodified file properly, if there’s anyone out there using it.

A. Square:
Thanks again for clarifying, James.

If I manually go in to my drd file and change all the “X3508Y2512” to “X0.3508Y0.2512” everything lines up prefectly in gerbv.

So, I guess my question now is, which do I submit to BatchPCB, the original output, or the modified one? I suspect it’s the original output, since that is what’s generated by BatchPCB’s own Eagle CAM file.

I know they mention something about the leading and trailing zeros when uploading; should I just choose the “Eagle” option and the good folks on the other end will figure it out?

And I’d still love to know how to tell gerbv to display the unmodified file properly, if there’s anyone out there using it.

Jonathan,

Becareful about submitting an order and “expecting them to work it out”.

The Batch PCB bot doesn’t show via holes, but it will show a regular drill hole. If you want to know if the drill file is correct, put a regular drill hole somwhere on your board, and submit it to the bot. It will return a PNG file with the regular holed located in the spot it suspects it should go. If it is not correct, you should start tracing down the problem.

This is a pretty good test to see if your files work out right for the bot.

James L

I’m glad you posted that. I had just patched my version of gerbv, which got rid of the problem. I uploaded my design, got the all-clear from the bot, and had just assumed that drill holes weren’t shown in the image file. Now I’ll try playing around more.

James, are you sure that the drill files are supposed to show up in the preview? This post says otherwise:

viewtopic.php?p=39354#39354

Edit: Is it possible that it’s showing a “keep-out” layer, which I’m not using?

A. Square:
James, are you sure that the drill files are supposed to show up in the preview? This post says otherwise:

viewtopic.php?p=39354#39354

Edit: Is it possible that it’s showing a “keep-out” layer, which I’m not using?

I have always put mounting holes in all of my boards (haven’t ordered lately though) and the plain drill holes show up on the PNG’s I receive.

Holes do not show up on things like vias that have other layers associated with them. Note that I do not have any type of power or ground plane on the board…and that will make a difference.

Here is an example that I have converted to jpg and resized.

http://www.lilbro.mosquito.net.nz/images/864_lg.JPG

BTW…anyone that ask…this is a real old design…my designs look much better now.

James L

Hmm… I wish I knew how to get them to show up, but when I emailed the BatchPCB support they said that the bot doesn’t actually look at the drill files, so I don’t know where the data in your files is coming from. They said that as long as it passed the test, it should be good to go. Still, I’d love to have that nice-looking preview picture, if I could figure out how to get it!

A. Square:
Hmm… I wish I knew how to get them to show up, but when I emailed the BatchPCB support they said that the bot doesn’t actually look at the drill files, so I don’t know where the data in your files is coming from. They said that as long as it passed the test, it should be good to go. Still, I’d love to have that nice-looking preview picture, if I could figure out how to get it!

The bot used to send one back…I haven’t ordered in a while…actually a long time…maybe it doesn’t do that any more.

I’ll try and submit an order and post my results.

EDIT: Just tried it…and got a nice email containing a PNG file with the nicest picture contained. (Jonathan…you may want to check your email spam settings)

I posted a slice of the PNG (converted to JPG)

James L

http://www.lilbro.mosquito.net.nz/images/10045_lg.jpg

Sorry, this time I didn’t explain myself well: I get the picture in my email, but the drill holes don’t show up. I sent an email to BatchPCB support asking if this meant there was a problem with my drill file, and they said no:

Our bot doesn’t always give correct outputs. Since it doesn’t actually look at the drill file, it doesn’t always give accurate photos. If it passed the test, then it should be good to go.

So, what I was wondering is why your drill files show up in the preview and mine don’t.

Jonathan,

Hmmm…that is interesting…I guess I’m a lucky one, if the bot doesn’t always show the drill holes.

I just assumed (that word again) that everyone got the pretty files like I get.

I can’t answer that…we would have to discuss the matter with David Carne, because he is knowledgeable about the bot and it’s inner workings.

Maybe I’m just holding my tongue right when I hit the submit button.

It is very strange, because I consistently get my drill holes displayed with the returned image. (if not associated with another layer)

I’ll take a look at my file and see if I can spot something that may cause this.

James L

The ‘drill holes’ you’re seeing are actually just lack of any layer being drawn. The bot does its “rendered” image by drawing a black background, drawing a copper layer, drawing a semi-transparent soldermask over it, and then drawing the silkscreen in white. In the areas where its black, there is just no other information to draw.

Cheers,

–David Carne

busonerd:
The ‘drill holes’ you’re seeing are actually just lack of any layer being drawn. The bot does its “rendered” image by drawing a black background, drawing a copper layer, drawing a semi-transparent soldermask over it, and then drawing the silkscreen in white. In the areas where its black, there is just no other information to draw.

Cheers,

–David Carne

David,

Ok…granted I can accept the point of a hole is the lack of anything else.

What I don’t understand, if we are both using Eagle…and both are doing 2 layer boards, why do not both of us see a hole, where a standard (not via or through hole) is located?

Sort of baffles the mind…I would figure my mounting holes would equate to his. (The lack of any layer in that area)

Hmmmmmm

[Edit]: I went back and checked…and I would like for you to do something (Jonathan). Would you check your Cam Processor for Spark Fun and see if the DRD file includes the drills and the holes?

Mine does. [/Edit]

James L

propellanttech:
[Edit]: I went back and checked…and I would like for you to do something (Jonathan). Would you check your Cam Processor for Spark Fun and see if the DRD file includes the drills and the holes?

Mine does.

Alright, mystery solved! The DRD file does include both the drills and the holes, however my holes layer was empty. When I added in a couple of holes manually, re-ran the CAM processor, and uploaded the result, the holes showed up on my preview.

So, is there a way to have Eagle automatically place holes where it places drills?

Jonathan,

I usually have my holes layer turned on by default, maybe that is why my holes are always placed.

I’m not sure why the holes layer wouldn’t automatically be updated when placing a hole. It’s a mystery to me.

But we have atleast found the secret to having non-associated(not via’s or any other layer associated) holes displayed.

I think this thread should be a sticky.

James L