delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2023/10/05/19:16:20

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=1696547698; x=1697152498; darn=delorie.com;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:from:to:cc:subject:date:message-id:reply-to;
bh=6TXTrRGUZukK89Rh64nj7JBOSkHsdjdxmV6a1eSnTiI=;
b=Kml/yKpkPdHUUNo+IpUjygBluhagtUIiQ6F7T3nhXqpb5qY6eGoXPSPrqN4oip5b8/
Rjw37jgS5kEUPUZon92CcUxFXijRGAZvDzEwsoFbDWqJy7rn5iSw+WlP2R35UPQLL7NA
zwzW9y4r5ICG+RrwijgL+FFr/+jM5n6+YbiacMIn3Epb5lYE95KiDqNOUC3nxxjqlNiy
N0flLvIi4c1VgFsBuzV0eiKeD5p+epPaaLJdJb7Yr/pun6YcPtr8R8H8awKrbAvkpZwu
V+J2XlcyAjbAx2SQPjO1kSHEN8/y93AOnlVlvxV3od8Z0MfBEfEVA107tPO/1YB8ccy7
elgQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1696547698; x=1697152498;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=6TXTrRGUZukK89Rh64nj7JBOSkHsdjdxmV6a1eSnTiI=;
b=TkZfkvAantCDBvqQj/8zMuPn13g4/RhO+5NtTIJlkRlLgNXETLNC1s82AKTFPCcjSI
wWYgsZPP2ba2PQbOWiriBg4FPBuNnqG5zVikKatx/Nu/ueLu6BeHP1wpq76RsJ//ujXE
5d0w6EJoLmo5jIKevk4HLnxMDJVd6PtBnZSqLefjBZupSzgkBV8jQJz5ZEj3IlQaY206
DvjEvNiLD/kO+M7GfSSj5HH0eg5Epmy0AKirbw/14w4DxLCKYJcWMhojnZ+/osYfuRgU
/MSYAg9KebSrFq9qdWEXCya9RTU8Sxy5W3iOGiTScrSoatoEH8/GeHWBaeZrI6BOyhc9
R9bw==
X-Gm-Message-State: AOJu0YzqfLB8By08SvjzWdNtoP5AXgW4CwGIHhcoum0ua/IL/Psxn/+C
wjUjaBra2keHho1gK0yNh9YLr/5JpvGSUReNYdtEm5gj
X-Google-Smtp-Source: AGHT+IG2Q3/n87prepGpJBPZ/ql1J8Irj5ku9ib0+3LR4+es9bCeQVk0dt5vmVoTLGG9RAvZpp+dB5MBZFVdqUN73Pw=
X-Received: by 2002:a05:6830:4875:b0:6c7:c723:c31c with SMTP id
dx21-20020a056830487500b006c7c723c31cmr182897otb.37.1696547697143; Thu, 05
Oct 2023 16:14:57 -0700 (PDT)
MIME-Version: 1.0
References: <20231005143816 DOT 6ef6681c AT amanite>
In-Reply-To: <20231005143816.6ef6681c@amanite>
From: "John Luciani (jluciani AT gmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
Date: Thu, 5 Oct 2023 19:14:45 -0400
Message-ID: <CA+qhd=9n6XwCP-ShVm4sa6Ru2KqeG6v97DRUBDnYzuSOE+JMrA@mail.gmail.com>
Subject: Re: [geda-user] Set different footprints to sub-schematic components
To: geda-user AT delorie DOT com
Reply-To: geda-user AT delorie DOT com

--000000000000d533890607004ab0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

For these types of string changes I usually just do a query-replace or
search-replace
function in EMACS. The macro record/playback functions can also be useful
if you
first need to find a component name (e.g. "R1:U1") and then replace the
footprint attribute.

I always copy all the files to a backup directory prior to editing.

John L


On Thu, Oct 5, 2023 at 8:48=E2=80=AFAM Claudio Fabri (clafi AT gmx DOT com) [via
geda-user AT delorie DOT com] <geda-user AT delorie DOT com> wrote:

>
> Hi.
>
> I have a schematic that is made of a custom symbol and subschematic to
> avoid repeating the same block all over again. Everything works fine
> so far. It turns out that I need the footprint of one of the two
> resistors in that subschematic to be "RADIAL_CAN 200" instead of
> "R025" =C2=B9.
>
> So far the only things I managed to do are
>
> * either I update my PCB and edit the PCB file in an editor to change
>   the definition of the resistor element (which gets added everytime I
>   update the PCB, of course)
>
> * or I manually add the radial element, delete the old one and edit
>   names and nets using the dialogue boxes.
>
> Either way is a bit tedious in the long run.
>
> The sub schematics components in question are named "R1:U1" (with the
> radial footprint) and "R1:U2" (with the "R025" footprint). Can I make
> that change permanent and how?
>
> FTR I'm also using `gsch2pcb` and a project file in which I store
> parameters and other command line options to `pcb`.
>
> Thanks in advance for any hint or suggestion.
>
> =C2=B9 I have added a footprint attribute to every component in the
> sub-schematic in question.
>
> C.F.
>
>

--000000000000d533890607004ab0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>For these types of string changes I usually just do a=
 query-replace or search-replace</div><div>function in EMACS. The macro rec=
ord/playback functions can also be useful if you <br></div><div>first need =
to find a component name (e.g. &quot;R1:U1&quot;) and then replace the</div=
><div>footprint attribute.</div><div><br></div><div>I always copy all the f=
iles to a backup directory prior to editing.</div><div><br></div><div>John =
L<br></div><div><br></div></div><br><div class=3D"gmail_quote"><div dir=3D"=
ltr" class=3D"gmail_attr">On Thu, Oct 5, 2023 at 8:48=E2=80=AFAM Claudio Fa=
bri (<a href=3D"mailto:clafi AT gmx DOT com">clafi AT gmx DOT com</a>) [via <a href=3D"ma=
ilto:geda-user AT delorie DOT com">geda-user AT delorie DOT com</a>] &lt;<a href=3D"mailt=
o:geda-user AT delorie DOT com">geda-user AT delorie DOT com</a>&gt; wrote:<br></div><blo=
ckquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left=
:1px solid rgb(204,204,204);padding-left:1ex"><br>
Hi.<br>
<br>
I have a schematic that is made of a custom symbol and subschematic to<br>
avoid repeating the same block all over again. Everything works fine<br>
so far. It turns out that I need the footprint of one of the two<br>
resistors in that subschematic to be &quot;RADIAL_CAN 200&quot; instead of<=
br>
&quot;R025&quot; =C2=B9.<br>
<br>
So far the only things I managed to do are<br>
<br>
* either I update my PCB and edit the PCB file in an editor to change<br>
=C2=A0 the definition of the resistor element (which gets added everytime I=
<br>
=C2=A0 update the PCB, of course)<br>
<br>
* or I manually add the radial element, delete the old one and edit<br>
=C2=A0 names and nets using the dialogue boxes.<br>
<br>
Either way is a bit tedious in the long run.<br>
<br>
The sub schematics components in question are named &quot;R1:U1&quot; (with=
 the<br>
radial footprint) and &quot;R1:U2&quot; (with the &quot;R025&quot; footprin=
t). Can I make<br>
that change permanent and how?<br>
<br>
FTR I&#39;m also using `gsch2pcb` and a project file in which I store<br>
parameters and other command line options to `pcb`.<br>
<br>
Thanks in advance for any hint or suggestion.<br>
<br>
=C2=B9 I have added a footprint attribute to every component in the<br>
sub-schematic in question.<br>
<br>
C.F.<br>
<br>
</blockquote></div>

--000000000000d533890607004ab0--

- Raw text -


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