delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2024/04/30/17:21:36

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.7+dev
X-Exmh-Isig-CompType: repl
X-Exmh-Isig-Folder: inbox
From: "karl AT aspodata DOT se [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] Gschem refdes autonumber over multiple pages?
In-reply-to: <20240430103043.32de22ff@queeg.menasians.com>
References: <37de350c-1e5f-422f-b13a-c5a9a1e132ac AT linetec DOT nl> <20240429130455 DOT F01EF81AB8C5 AT turkos DOT aspodata DOT se> <a49f9288-9af4-4bd7-b8bb-f1f6c41fd01f AT linetec DOT nl> <20240430103043 DOT 32de22ff AT queeg DOT menasians DOT com>
Comments: In-reply-to "Stephen C. Menasian (menasian AT ptd DOT net) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
message dated "Tue, 30 Apr 2024 10:30:43 -0400."
Mime-Version: 1.0
Message-Id: <20240430211916.A6DBC81AB8C5@turkos.aspodata.se>
Date: Tue, 30 Apr 2024 23:19:16 +0200 (CEST)
X-Virus-Scanned: ClamAV using ClamSMTP
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019