Mail Archives: geda-user/2024/05/01/14:04:19
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 -