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: 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> <20240430103043 DOT 32de22ff AT queeg DOT menasians DOT com> <20240430211916 DOT A6DBC81AB8C5 AT turkos DOT aspodata DOT se> <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]" Content-Language: nl-NL, en-US In-Reply-To: <87sez18q32.fsf@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 Precedence: bulk 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]" 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