delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2024/05/01/14:04:19

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Virus-Scanned: Debian amavisd-new at mail.linetec.nl
Message-ID: <b4b5eab9-3fdc-45e7-b627-9b802e627b2d@linetec.nl>
Date: Wed, 1 May 2024 20:02:14 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: [geda-user] Gschem refdes autonumber over multiple pages?
To: geda-user AT delorie DOT 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>
<20240430211916 DOT A6DBC81AB8C5 AT turkos DOT aspodata DOT se>
<bec8e19d-0ad0-454b-a3cf-f220e466c433 AT linetec DOT nl>
<25416a96-c328-4b7e-8fa8-091c993205bd AT linetec DOT nl> <87sez18q32 DOT fsf AT gmail DOT com>
From: "Richard Rasker (rasker AT linetec DOT nl) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
In-Reply-To: <87sez18q32.fsf@gmail.com>
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

Hello Vladimir,

Op 01-05-2024 om 18:12 schreef Vladimir Zhbanov (vzhbanov AT gmail DOT com) 
[via geda-user AT delorie DOT com]:
> "Richard Rasker (rasker AT linetec DOT nl) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com> writes:
>
>> Correction:
>>
>> Op 01-05-2024 om 13:40 schreef Richard Rasker:
>>
>>   ... it should be pretty easy to write a script that concatenates and sorts all gschem files listed in a project file, and then tries matching a
>>   counter to RefDes numbers for each component type, and simply spits out the first counter value for which no RefDes is found, at which
>>   point it can exit.
> Hi Richard,
>
> I've written a simple Scheme script for lepton-schematic just now
> (attached).
How kind, thank you!
> It processes components of all open pages and outputs the
> result as is defined at the bottom of the script.  You can load it from
> GUI.

Maybe a stupid question, but how do I do this? I use geda-gschem, but 
the only reference to executing a script that I can find in gschem is 
Tools -> Execute Guile Script, but I don't think that this is what you 
mean. And if I choose this option and select your script(*), nothing 
happens. I also have no idea what scripting language this is -- I'm only 
familiar with bash.

*: Yes, I did 1) already replace 'lepton' with 'geda' throughout, 2) 
make it executable, and 3) make sure it's in $PATH.

Do I need to add it to gschemrc or something like that?

>    It can be easily modified and adjusted for your needs.  Even
> output the info to the log window or a message dialog, if you wish.

Regards,

Richard

- Raw text -


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