delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/04/24/12:06:14

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Fri, 24 Apr 2015 16:47:41 +0200 (CEST)
From: Roland Lutz <rlutz AT hedmen DOT org>
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] Multiple symbols for a single device?
In-Reply-To: <CAGRhJMZqu-mxkPAJkMz1KFWqSp4qEeGnDeBynW6nHw9Q+FB92A@mail.gmail.com>
Message-ID: <alpine.DEB.2.11.1504241630570.16346@nimbus>
References: <CAOkiwas6BgzP1gB0DzgR6FVBEP-RpMrMfB9wZewZzDwC5Xya0g AT mail DOT gmail DOT com> <20150414113158 DOT GB29193 AT visitor2 DOT iram DOT es> <mgjfti$46s$1 AT ger DOT gmane DOT org> <CAGRhJMZqu-mxkPAJkMz1KFWqSp4qEeGnDeBynW6nHw9Q+FB92A AT mail DOT gmail DOT com>
User-Agent: Alpine 2.11 (DEB 23 2013-08-11)
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

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--8323329-933645996-1429886861=:16346
Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8BIT

On Wed, 22 Apr 2015, Joshua Lansford wrote:
> refdes_renum_slots supports split and slotted symbols.  The groups must be
> manually created but then it preserves them even if --force d to renumber.
> http://archives.seul.org/geda/user/Jan-2011/msg00820.html

For my schematics, it exits with an error as I'm not regularly using the 
"device=" attribute.  Also, when using the option "--force", it adds 
numbers to the input/output ports which breaks the schematic hierarchy. 
After patching these things, though, it worked well with my test 
schematic.  Thanks for sharing this! :)

I translated the script to Python to make it more accessible and started 
improving a few things.  Here is my current version:

https://raw.githubusercontent.com/rlutz/refdes_renum_slots/master/refdes_renum_slots.py

When using "--force", there are some cases in which the script breaks 
existing slotted components--I'm not sure if this is a bug in the original 
script or a translation error.  Also, numbered ports are renumbered when 
using "--force" (but there doesn't seem to be an easy way to detect 
whether a component is a port).

Roland

--8323329-933645996-1429886861=:16346--

- Raw text -


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