[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: gerber file problem: bad aparature?



Stuart Brorson wrote:
>> When I load the file dAmp.fab.gbr into gerbv (version 2.2.0), it
>> complains with the following:
>>
>> Undefined aperture number called out in D code.
>> Found undefined D code D16 in file
>> /home/gene/projects/avTek/hardware/layout/dAmp.fab.gbr
>>
> Every Gerber file should carry a preamble which defines all apertures
> used in that file.  The definition looks something like this:
> 
> %ADD16C,0.008*%

Yep, I see it.
> 
> 
> *  Did you load this file alone into gerbv when you got this message?
> Or did you load it into gerbv with other files too?

I narrowed it down to just the .fab.gbr layer.
> 
> *  What program did you use to create these Gerbers?  If you used
> gEDA/PCB, then the PCB developers should take a look at this case,
> since PCB may be emitting incorrect Gerber code.
Yep, PCB.

>Did you play any tricks in this design like using 0
> diameter drills, or 0 diameter tracks, or some such?
Not intentionally, no.  I did adjust all the through-hole parts to use 
standard drill sizes (from DJ's PCB manual).  I manually adjusted the 
pin definitions in the .pcb file until the errors stop reporting.
> 
> *  Assuming you used gEDA/PCB to create this file, can you attach a copy of
> this file to an e-mail so we can look at it?  The PCB developers may
> want to look at your .pcb file too.

In private, not a public email.

> *  Under the analyze menu in gerbv there are some options
> allowing you to see what apertures were defined in which file, and how
> many times they were used.  If you fiddle around with those reports,
> you may get some insight into what is happening with your Gerbers.
> 
> HTH,

It reports 6 errors.  Although the through-hole part in question here 
only appears twice for a total of 4 holes.
> 


I've been wrestling with this problem for a few days now and may have a 
handle on it - sort of.  It's down to one single component that keeps 
causing the error to appear, but I don't see why.

Here's the offending device when it works:

Element["selected" "CAPEL-50P-125D_NICHICON_PW" "C123" "390uF" 325000 
358000 -4600 23300 0 100 "selected"]
(
	Pin[-8267 -5512 7300 2000 8500 3543 "+" "1" "square,edge2,thermal(2X)"]
	Pin[11418 -5512 7300 2000 8500 3543 "-" "2" "edge2,thermal(1X)"]
	ElementLine [-27165 -2756 -24015 -2756 1000]
	ElementLine [-27165 -7874 -27165 -2756 1000]
	ElementLine [-27165 -8268 -27165 -7480 1000]
	ElementLine [-27165 -8268 -24409 -8268 1000]
	ElementArc [1575 -5512 25591 25591 90 90 1000]
	ElementArc [1576 -5512 25591 25591 0 90 1000]
	ElementArc [1183 -5511 25198 25198 270 90 1000]
	ElementArc [1184 -4727 25982 25982 180 90 1000]

	)

and here's the offending device when it doesn't work:

Element["selected" "CAPEL-50P-125D_NICHICON_PW" "C123" "390uF" 325000 
358000 -4600 23300 0 100 "selected"]
(
	Pin[-8267 -5512 7300 2000 8500 3600 "+" "1" "square,edge2,thermal(2X)"]
	Pin[11418 -5512 7300 2000 8500 3600 "-" "2" "edge2,thermal(1X)"]
	ElementLine [-27165 -2756 -24015 -2756 1000]
	ElementLine [-27165 -7874 -27165 -2756 1000]
	ElementLine [-27165 -8268 -27165 -7480 1000]
	ElementLine [-27165 -8268 -24409 -8268 1000]
	ElementArc [1575 -5512 25591 25591 90 90 1000]
	ElementArc [1576 -5512 25591 25591 0 90 1000]
	ElementArc [1183 -5511 25198 25198 270 90 1000]
	ElementArc [1184 -4727 25982 25982 180 90 1000]

	)

Changing the drill size will make or break it.  You don't discover this 
until running gerbv, where it reports something is wrong.  As the 
message says, it's missing the definition for the apperature.


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user