Mail Archives: geda-user/2024/04/30/17:21:36
Richard:
> > Thank you for your explanation. So there is no easy solution that I
> > overlooked. This hierarchical numbering seems rather complicated; I
> > think I'll follow upĀ on your suggestion and write a simple script that
> > maintains a list of all RefDes-attributes in all relevant page files,
> > and simply coughs up the next free RefDes for the most common
> > categories of components (R, C, L, U, Q).
Hmm, I gave you an easy solution in a another mail.
> I wrote a simple program (geda_parts) which when invoked as follows:
>
> geda_parts <schematic_file_base> <reference type>
>
> reference type can be R, C, Q, U, L, T, Y
Instead of thoose single letter <reference type>, why not search
for the device attribute instead, like Capacitor, Resistor etc.
...
> It lists other significant part attributes. It was written to create
> starting points for parts lists. It has proven handy in manual
> renumbering to detect gaps n the parts list sequence or duplicated
> reference descriptors.
>
> Here is a typical output:
> -------------------------------------
> C1 CAPACITOR, Polypropylene 0.10uF
> C2 CAPACITOR, VARIABLE 4-36pF, ceramic
> C3 CAPACITOR 0.03uF
> C4 CAPACITOR 250pF
...
Why not use (or the geda equiv.):
$ cat attribs
device
footprint
value
$ lepton-netlist -g bom styrkort.sch
$ grep Capacitor output.net | head -3
3C1 Capacitor ipc7351b_2012Ar.fp 1u
3C2 Capacitor ipc7351b_2012Ar.fp 10n
3C3 Capacitor ipc7351b_2012Ar.fp 1u
$ echo `grep Capacitor output.net | cut -f 1 | sort `
12C1 12C2 12C3 3C1 3C2 3C3 _C0 _C1 _C2 _C3 _Ca1 _Ca2 a3C1 a3C2 a3C3 a5C1 a5C2 a5C3 aC1 aC2 aC3 amC1 amCi1 anC1 anC2 anC3 apC1 apC2 apC3 dC1 dC2 pC1 pC2 pC3 pC4 pC5 pC6 pC7 pC8 pC9 sC1 sC2 sC3 sC4 sC5 sC6 sC7 srC1 srC2 srC3 srC4 srC5 t0C01 t0C1 t0C11 t0C12 t0C2 t0C21 t0C22 t0C31 t0C34 t1C01 t1C1 t1C11 t1C12 t1C2 t1C21 t1C22 t1C31 t1C34 t2C01 t2C1 t2C11 t2C12 t2C2 t2C21 t2C22 t2C31 t2C34 t3C01 t3C1 t3C11 t3C12 t3C2 t3C21 t3C22 t3C31 t3C34 t4C01 t4C1 t4C11 t4C12 t4C2 t4C21 t4C22 t4C31 t4C34 t5C01 t5C1 t5C11 t5C12 t5C2 t5C21 t5C22 t5C31 t5C34 t6C01 t6C1 t6C11 t6C12 t6C2 t6C21 t6C22 t6C31 t6C34 t7C01 t7C1 t7C11 t7C12 t7C2 t7C21 t7C22 t7C31 t7C34 yC1 yC2
$
My guess is that your program doesn't provide anything new.
Regards,
/Karl Hammar
- Raw text -