delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2014/04/01/19:49:29

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: amavisd-new at neurotica.com
X-NSA-prism-xkeyscore: I do not want to be surveilled
Message-ID: <533B5001.9030507@neurotica.com>
Date: Tue, 01 Apr 2014 19:47:13 -0400
From: Dave McGuire <mcguire AT neurotica DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0
MIME-Version: 1.0
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] copy/paste between different schematics
References: <CAHBVutBFUm6B20gcKRs=fxSCOYk7qh+vGV+Az2SpoYFmh0FCXg AT mail DOT gmail DOT com> <533AD3D9 DOT 7000208 AT neurotica DOT com> <533AD5DD DOT 6090006 AT buffalo DOT edu> <533AD8A8 DOT 6070807 AT neurotica DOT com> <533ADB0D DOT 5000103 AT buffalo DOT edu>
In-Reply-To: <533ADB0D.5000103@buffalo.edu>
X-Enigmail-Version: 1.6
Reply-To: geda-user AT delorie DOT com

On 04/01/2014 11:28 AM, Stephen R. Besch wrote:
> I just wish that there were such a simple solution to the "renumbering"
> conundrum. Admittedly, there are some scripts out there thathave taken a
> stab at the problem, but they all are marginal as far as I'm concerned.

  Yes, this is definitely an issue, but it's a really tough nut to
crack.  There's probably a zillion different ways to do this, maybe 1000
"good" ways, and maybe ten that wouldn't lock us into a corner five
years down the road.

> The problem is in the gschem to PCB interface itself. There are 3 files
> involved (the sch, net and pcb files). If a component name changes in
> the sch file the net file gets rewritten and PCB reloads it. When it
> finds the old component name missing, it deletes the old component and
> creates a new one with the new name which has to be dragged by the user
> to it's correct location.

  Ick.

  I've been lucky in that when I copy and paste chunks of schematics,
they're generally only a handful of components.  I renumber them by
hand.  I have a dead-simple script that just selects a refdes of a
particular type (R, C, U..) and prints them out sorted, and I eyeball it
and look for duplicates.  Right now the board I'm working on is a bit
larger, so I'm thinking about extending it to do a count of (say) all
the Rs, then sort them out and ensure that they're monotonically
increasing and not duplicated, then flag the ones that are, just in a
shell window.  I'd then go fix up the problems manually.

  It's not great, but again I usually don't have to do this with very
big pieces of circuitry.

> The only satisfactory way I have found to get
> around this is by hand editing the files in a text editor, which always
> works and allows me to number "geographically" on the PCB and
> back-annotate into the schematic. Someday, when I get the time I'll
> write a GUI based tool to do the tedious part for me.

  That sounds like fun!  Not. ;)

              -Dave

-- 
Dave McGuire, AK4HZ
New Kensington, PA

- Raw text -


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