[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-user: Rule-based assignment of default attributes
Hi,
I just thought about a way to have defaults for footprint assignments
and such, while keeping it easy to change them project-wide, and at
the same time keeping local customizations.
How about having a text file, with rules like:
match device=RESISTOR
assign footprint=1206
Then, any resistor without a footprint attribute will be a 1206 by
default. Resistors with attributes assigned manually will not be
touched. Note that I'm not adding attributes to the symbols, just
providing defaults.
Then, to change the default, project-wide, just modify one line in the
rules file.
A more advanced example, which assumes you singled-out all decoupling
capacitors by adding an extra attribute:
match device=CAPACITOR, function=DECOUPLING
assign footprint=1206, value=100n, part=<manufacturer part number>
You get the idea.
For single-file schematic projects, you could avoid having to ship one
extra file by embedding it in the schematic somehow.
A benefit, as I see it, is that you keep fewer attributes hardcoded in
the schematic, fostering reuse.
I do mean to code it myself if nobody else does. Just don't hold your
breath (I've been meaning to add tabbed pages to gschem since 2006,
and I didn't even get around to start coding).
Regards,
Cesar
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user