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]" Date: Thu, 5 Oct 2023 19:14:45 -0400 Message-ID: Subject: Re: [geda-user] Set different footprints to sub-schematic components To: geda-user AT delorie DOT com Content-Type: multipart/alternative; boundary="000000000000d533890607004ab0" 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] 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
For these types of string changes I usually just do a= query-replace or search-replace
function in EMACS. The macro rec= ord/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 f= iles to a backup directory prior to editing.

John = L


On Thu, Oct 5, 2023 at 8:48=E2=80=AFAM Claudio Fa= bri (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<= br> "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
=C2=A0 the definition of the resistor element (which gets added everytime I=
=C2=A0 update the PCB, of course)

* or I manually add the radial element, delete the old one and edit
=C2=A0 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" footprin= t). 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--