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

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1714588939; x=1715193739; darn=delorie.com;
h=mime-version:message-id:in-reply-to:reply-to:date:subject:to:from
:user-agent:references:from:to:cc:subject:date:message-id:reply-to;
bh=vxGTY+0l+OudoErqHuchJ78bDE4Z+0HFqJW5eOUv2ds=;
b=lgaYc3oiZgVcMrInhveKBKcJLnVBjvWaKL5mTqt8AAhj3J/6pqrPkk/4tYU7YWUOjz
T5O2EWKeUK/R7C3chXrx1MUaxxAt/bfEbsRfT09ybdi7k5Fm0ADxlNJhOSaF6Xb+UGcy
LkMqI5lbWIOT4DSCnbRp6DVxD80kTarOKNtuHQCIV7bgNo0fo/GdiyC2dvBDB0T3doyh
xFjqr4mFCEDKv0fHMHWbLHI9NmXu6pLsFellMZvw1FUpCSC4N+usj6wujMiwqSCD0V1u
QG4N/xHPQ9ilwxKe8Wnez+CK3J8uw/bgWMTj54nQ1GkVAp2jOp8Q9O7Iwc1uKO/Nvwbs
ClNw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1714588939; x=1715193739;
h=mime-version:message-id:in-reply-to:reply-to:date:subject:to:from
:user-agent:references:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to;
bh=vxGTY+0l+OudoErqHuchJ78bDE4Z+0HFqJW5eOUv2ds=;
b=Eo2itG8wufnWWyVJLeOwvlgFycH/4tsQv642UrOd5XzYF8NnQRQazBVV4O8hzFZzNa
EUpboFX3R1mH4LvGil6s9sdz+ZnIYQ56hVj5mRnDfrmBdgC/oHUbdnUYrUq4n1fpNlZy
zf2o1zM8q0MEXYPg5fTb0/SI7S+pH/UTvr65q2h+317GstOZYQRNatlzUUMYLaVr+zpl
k74XgQzTr5+3Vr2kAhE/tjwGIH8hq8OrniHcIHQWWKnbW/aOVj6JObCA/O+J12yAXWhP
DXa31Xr2eqYKXAcrn6+9y8jD/PSyNO1OdkIb04z107Ubz3X3wxqn1sVMsVN2AGYmydi8
StzA==
X-Gm-Message-State: AOJu0YyodQuNvgaYHbP/5m8owVkCqVSKIBR5i21wcZMOOJ6edO4BwvDs
cDgMv3bgUGQzBi9b+6517DQrY9mJPM4QOmneAZbPGhwhh0Ql/WFzqz2IVg==
X-Google-Smtp-Source: AGHT+IEvQgLnYLeldaJjGSjpv97SN/KOVarW3XKxBSDNKsxMNp4fhvmSe65oITeY5gr35pjnlytGzg==
X-Received: by 2002:a05:6512:3128:b0:519:611f:df49 with SMTP id p8-20020a056512312800b00519611fdf49mr2352076lfd.69.1714588938320;
Wed, 01 May 2024 11:42:18 -0700 (PDT)
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>
<b4b5eab9-3fdc-45e7-b627-9b802e627b2d AT linetec DOT nl>
User-agent: mu4e 1.10.0; emacs 28.2
From: "Vladimir Zhbanov (vzhbanov AT gmail DOT com) [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?
Date: Wed, 01 May 2024 21:28:50 +0300
In-reply-to: <b4b5eab9-3fdc-45e7-b627-9b802e627b2d@linetec.nl>
Message-ID: <87o79p8jcu.fsf@gmail.com>
MIME-Version: 1.0
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

Hi Richard,

"Richard Rasker (rasker AT linetec DOT nl) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com> writes:

...
>> 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.

It is not necessary to do (2) and (3).  In lepton-schematic menu the
item for this is File->Execute Script (or just hit 'F T').  Select the
script in the file selection dialog and press the Run button.  That's
all.  The output will go to the terminal the program is launched from.
If you want to see its output, say, in the log window (e.g. in case you
don't use any terminal for launching the GUI), you'll have to replace
the "(display ...)" commands with something like
  (log! 'message "Counter for R is ~A\n" (lookup-counter-by-prefix "R"))

And yes, it is Guile Scheme.

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

Nope.

  Vladimir


- Raw text -


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