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 Content-Type: multipart/alternative; boundary="------------0Vu4arysc01D9fg7O9wDpsfo" Message-ID: <87f0ddd3-9661-409a-93f5-96a363c08a4e@linetec.nl> Date: Thu, 2 May 2024 19:27:31 +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> <87o79p8jcu DOT fsf AT gmail DOT com> <87jzkd8cl6 DOT fsf AT gmail DOT com> <29fb0d05-ccab-49a8-ac1d-deada1e6a216 AT linetec DOT nl> <87a5l8nr2y 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: <87a5l8nr2y.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 Precedence: bulk This is a multi-part message in MIME format. --------------0Vu4arysc01D9fg7O9wDpsfo Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hello Vladimir, Op 02-05-2024 om 17:49 schreef Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via geda-user AT delorie DOT com]: > Richard, > > "Richard Rasker (rasker AT linetec DOT nl) [viageda-user AT delorie DOT com]" writes: > ... >> Ah, yes, that was what was missing, thanks! >> >> And it has already come in handy too! > The next steps in such a little automation could be: > - Get rid of global variables in the script. Um, nope. The next step would be - Get acquainted with Guile. At least for me (I never saw a Guile script in my life before this one) :-) > - Create a custom function that outputs what you want. Well, yes, I already thought that it would be nice to be able to specify a higher starting number than 1, in case I want to use 1-100 for page 1, 101-200 for page 2 etcetera. But then the script would need to accept user input as well. > - (Maybe engage the simple message dialog for output.) > - Add a shortcut for the function to quickly launch it in GUI. Yup, that would be nice too. Now it takes two keystrokes (G S) and a double click on the script file name. > - Load the script once (maybe from your project's gschemrc, or > manually). > ... > - Enjoy ;-) I'll certainly take a closer look at things, but right now, finishing the project has absolute priority, and this script has already saved me some time there ;-) Regards, Richard --------------0Vu4arysc01D9fg7O9wDpsfo Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Hello Vladimir,

Op 02-05-2024 om 17:49 schreef Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via geda-user AT delorie DOT com]:
Richard,

"Richard Rasker (rasker AT linetec DOT nl) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com> writes:
...
Ah, yes, that was what was missing, thanks!

And it has already come in handy too!
The next steps in such a little automation could be:
- Get rid of global variables in the script.

Um, nope. The next step would be

- Get acquainted with Guile.

At least for me (I never saw a Guile script in my life before this one) :-)

- Create a custom function that outputs what you want.
Well, yes, I already thought that it would be nice to be able to specify a higher starting number than 1, in case I want to use 1-100 for page 1, 101-200 for page 2 etcetera. But then the script would need to accept user input as well.
- (Maybe engage the simple message dialog for output.)
- Add a shortcut for the function to quickly launch it in GUI.
Yup, that would be nice too. Now it takes two keystrokes (G S) and a double click on the script file name.
- Load the script once (maybe from your project's gschemrc, or
  manually).
...
- Enjoy ;-)

I'll certainly take a closer look at things, but right now, finishing the project has absolute priority, and this script has already saved me some time there ;-)

Regards,

Richard

--------------0Vu4arysc01D9fg7O9wDpsfo--