File format documentation out-of-date
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gEDA project |
New
|
Medium
|
Unassigned | ||
pcb |
Fix Released
|
Medium
|
Bert Timmerman |
Bug Description
The documentation for Element Files (and probably
layout files as well) is outdated and does not
correctly list the fields.
Element[flags description layoutname(REFDES) value x y
text_x text_y textdirection textscale textflags]
Pin[x y thickness clearance mask drillinghole name
pinnumber flags]
Pad[x1 y1 x2 y2 thickness clearance mask name pinnumber
flags]
flags |= 0x0100 for rectangular pad
thickness is added to the length as well as the
length of
a line. If a pad is wider than it is long, width
and length
must be swapped and coordinates recalculated.
Square pads may not be possible at all as they require
a zero length line.
ElementLine[x1 y1 x2 y2 thickness]
ElementArc[x y width height angle delta thickness]
Mark() is obsolete.
The meaning of clearance and mask needs to be explained
adequately. Is it a radius, diameter, or a delta?
Mask I assume applies to soldermask. What does
clearance apply to? polygons? all other copper?
silkscreen? How does it interact with DRC settings?
Changed in pcb: | |
importance: | Undecided → Medium |
Changed in pcb: | |
importance: | Medium → Undecided |
Changed in pcb: | |
importance: | Undecided → Medium |
Changed in geda-project: | |
importance: | Undecided → Medium |
Changed in pcb: | |
milestone: | none → next-bug-release |
tags: | added: docs file-format |
Changed in pcb: | |
milestone: | next-bug-release → future-bug-release |
Changed in pcb: | |
status: | Fix Committed → Fix Released |
you are correct, the manual is out of date. I haven't
figured out what the "right" answer (for some reasonable
def. of "right") here is. If you take a look at
src/parse_y.y you'll see the full story, but using a yacc
program as a substitute for a manual is obviously lacking.
The tough thing is that there have been several versions of
PCB's file format and the current pcb program can read all
the old versions. Also various footprints in the library
have been created in various versions.
So I guess I'm open to suggestions on what the most useful
thing would be to have in the manual.
mask is soldermask, clearance is how much to clear when the
pad/pin is enclosed by a plane. I think they are both
diameters, but I'd have to probably do an experiment to say
that with even moderate confidence.