delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2014/04/02/01:23:06

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type;
bh=aTbte/etQCqCVP1/sqqhZlsdJv8gHXzoLKewCQBh4Uo=;
b=VrENHvxbXdokO5Ry+CIfj7BcezBiTAd6hlEsE9+OVywFCo9yKRLIGjEV9bQdLgODOn
GmhBXwFGYzwXfc/VVEwPPceFeftxGp9Lzo40i+eIdcR5ElGvpBP8vj8h+FlT4HgPuJNK
HeCFPSzwboKC5bc/agRiD0j8LSi1XUE4QQmtz8YLh3oZ0tblvfqkagw7wEcDVQnnDItr
W90KevpK98cLSKwAQO4I6Pe+QZL1tScCdsm3swbT2km0Qs5NE4DGAKilTKQl+UJ/EV3x
iuU2Y67ABwzan2gt+JX6/BuAoXFL1uwN5uxh4sde2gYTb8EaU9ziBMzkeQVXbi3DzoM9
TtLg==
MIME-Version: 1.0
X-Received: by 10.50.122.9 with SMTP id lo9mr6798203igb.27.1396416138063; Tue,
01 Apr 2014 22:22:18 -0700 (PDT)
In-Reply-To: <CAHBVutCgi0s++GaD7AZHztRg8pCHw2Rue7bQ4d7Et3beatfLcw@mail.gmail.com>
References: <CAHBVutC1GYEp0YoP6xQqnQoM8NBZzezKYuaVZwwE6EVfNmGOgw AT mail DOT gmail DOT com>
<CACwWb3D0FMnqgrB+qpfOjtSnpLL-kFbH1Lt55xFVR=z8QYTtYA AT mail DOT gmail DOT com>
<CAHBVutCgi0s++GaD7AZHztRg8pCHw2Rue7bQ4d7Et3beatfLcw AT mail DOT gmail DOT com>
Date: Tue, 1 Apr 2014 22:22:17 -0700
Message-ID: <CAC4O8c_tSFNP5Y-R4M7atHhR73NOdb8ZALGk+2DDhWgfteVR_w@mail.gmail.com>
Subject: Re: [geda-user] geda renumbering tool
From: Britton Kerin <britton DOT kerin AT gmail DOT com>
To: geda-user AT delorie DOT com
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

--089e015384fadea50d04f608779f
Content-Type: multipart/alternative; boundary=089e015384fadea50a04f608779d

--089e015384fadea50a04f608779d
Content-Type: text/plain; charset=ISO-8859-1

I do it with the attached script.  Its somewhat ugly but works for me.
From the header comment of the script:

# This script supports a style of repetitive layout in PCB in which you
# do the layout for the first copy of a subcircuit, turn off 'Require
# unique element names', copy the subcircuit layout, paste that subcircuit
# layout exactly once, then run this script to get the refdeses set right.
# At some point you probably have to delete the not-layed-out original
# elements with the adopted names as well.
#
# To do the above we take a pcb file name which should contain exactly two
# identical sets of selected elements and a number, then find all repeated
# refdeses (e.g. the second "S1/R1") that occur before the NetList() line
# in the file, and change them to for example "Sn/R1", where n is the given
# number.  A backup of the given pcb file called given_file.rrbackup is
# created before anything is done.  Beware running this script wrong twice
:)

Britton

On Tue, Apr 1, 2014 at 3:09 AM, Filippo Micheletti <
filippomicheletti AT gmail DOT com> wrote:

> Hi,
> I use this way too, but it produces long names and you have to provide an
> incremental "head-number" foreach "module" you design... also when you
> paste modules into a project you obtain not so clear numbering.
> What I would to do is to design each module using the standard numbering
> (starting from 1, using autonumbering tool) and then renumber globally all
> the used modules in a project applying new names to each module layout for
> pasting them in the whole layout of the project where I used them.
> I found a renumbering plugin here (
> http://www.bourbonstreetsoftware.com/GEDAComponentRenumbering.html) it
> does the renumbering job, what it's missed is the creation of command files
> to renumber component on the single layouts... I think it should be not so
> hard to do but I have no free-time to learn the gschem and pcb working and
> add this functionnality :(
>
>
> -Filippo-
>
>
>
>
> On 1 April 2014 10:53, Levente <leventelist AT gmail DOT com> wrote:
>
>> Ten years ago, I've done the grenum utility that does the job. However,
>> the built in renumber function is good enough so I don't use it myself.
>> What I do is I have 3 digit RefDes's on each layout. The first digit (MSB)
>> is the sheet number. So I have R100, R101 on one sheet, and R201, R202 on
>> the other. This can be done with the integrated tool.
>>
>> So you can say that sheet N will allways be this or that circuit.
>>
>> I don't know if I got your problem right...
>>
>> 73! de HA5OGL
>>
>>
>> On Tue, Apr 1, 2014 at 10:17 AM, Filippo Micheletti <
>> filippomicheletti AT gmail DOT com> wrote:
>>
>>> Hi everyone,
>>> does a tool for renumbering elements in a schematic avoiding to
>>> reposition them on layout exist?
>>> This would be very useful to reuse circuits blocks with already done
>>> layout in other projects...
>>> Thank you
>>>
>>> -Filippo-
>>>
>>
>>
>

--089e015384fadea50a04f608779d
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br>I do it with the attached script.=A0 Its somewhat ugly but works for me=
.=A0 From the header comment of the script:<br><br># This script supports a=
 style of repetitive layout in PCB in which you<br># do the layout for the =
first copy of a subcircuit, turn off &#39;Require<br>
# unique element names&#39;, copy the subcircuit layout, paste that subcirc=
uit<br># layout exactly once, then run this script to get the refdeses set =
right.<br># At some point you probably have to delete the not-layed-out ori=
ginal<br>
# elements with the adopted names as well.<br>#<br># To do the above we tak=
e a pcb file name which should contain exactly two<br># identical sets of s=
elected elements and a number, then find all repeated<br># refdeses (e.g. t=
he second &quot;S1/R1&quot;) that occur before the NetList() line<br>
# in the file, and change them to for example &quot;Sn/R1&quot;, where n is=
 the given<br># number.=A0 A backup of the given pcb file called given_file=
.rrbackup is<br># created before anything is done.=A0 Beware running this s=
cript wrong twice :)<br>
<br>Britton<br><br><div class=3D"gmail_quote">On Tue, Apr 1, 2014 at 3:09 A=
M, Filippo Micheletti <span dir=3D"ltr">&lt;<a href=3D"mailto:filippomichel=
etti AT gmail DOT com" target=3D"_blank">filippomicheletti AT gmail DOT com</a>&gt;</span=
> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr">Hi,<div>I use this way too,=
 but it produces long names and you have to provide an incremental &quot;he=
ad-number&quot; foreach &quot;module&quot; you design... also when you past=
e modules into a project you obtain not so clear numbering.<br>


What I would to do is to design each module using the standard numbering (s=
tarting from 1, using autonumbering tool) and then renumber globally all th=
e used modules in a project applying new names to each module layout for pa=
sting them in the whole layout of the project where I used them.</div>


<div>I found a renumbering plugin here (<a href=3D"http://www.bourbonstreet=
software.com/GEDAComponentRenumbering.html" target=3D"_blank">http://www.bo=
urbonstreetsoftware.com/GEDAComponentRenumbering.html</a>) it does the renu=
mbering job, what it&#39;s missed is the creation of command files to renum=
ber component on the single layouts... I think it should be not so hard to =
do but I have no free-time to learn the gschem and pcb working and add this=
 functionnality :(</div>


</div><div class=3D"gmail_extra"><br clear=3D"all"><div><br>-Filippo-<div><=
br></div><div><img src=3D"http://mitexeced.com/mit_lightbox/images/think_be=
fore_you_print.png"><br></div></div><div><div class=3D"h5">
<br><br><div class=3D"gmail_quote">On 1 April 2014 10:53, Levente <span dir=
=3D"ltr">&lt;<a href=3D"mailto:leventelist AT gmail DOT com" target=3D"_blank">lev=
entelist AT gmail DOT com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quot=
e" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir=3D"ltr"><div><div><div>Ten years ago, I&#39;ve done the grenum uti=
lity that does the job. However, the built in renumber function is good eno=
ugh so I don&#39;t use it myself. What I do is I have 3 digit RefDes&#39;s =
on each layout. The first digit (MSB) is the sheet number. So I have R100, =
R101 on one sheet, and R201, R202 on the other. This can be done with the i=
ntegrated tool.<br>



<br></div>So you can say that sheet N will allways be this or that circuit.=
<br><br></div>I don&#39;t know if I got your problem right...<br><br></div>=
73! de HA5OGL<br></div><div><div><div class=3D"gmail_extra">

<br><br><div class=3D"gmail_quote">
On Tue, Apr 1, 2014 at 10:17 AM, Filippo Micheletti <span dir=3D"ltr">&lt;<=
a href=3D"mailto:filippomicheletti AT gmail DOT com" target=3D"_blank">filippomich=
eletti AT gmail DOT com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote"=
 style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div dir=3D"ltr">Hi everyone,<div>does a tool for renumbering elements in a=
 schematic avoiding to reposition them on layout exist?</div><div>This woul=
d be very useful to reuse circuits blocks with already done layout in other=
 projects...</div>





<div>Thank you</div><span><font color=3D"#888888"><div><div><br>-Filippo-</=
div>
</div></font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br>

--089e015384fadea50a04f608779d--
--089e015384fadea50d04f608779f
Content-Type: application/octet-stream; name=rerefdes_repeats
Content-Disposition: attachment; filename=rerefdes_repeats
Content-Transfer-Encoding: base64
X-Attachment-Id: f_hti63xu30

IyEvdXNyL2Jpbi9wZXJsIC13CgojIFRoaXMgc2NyaXB0IHN1cHBvcnRzIGEgc3R5bGUgb2YgcmVw
ZXRpdGl2ZSBsYXlvdXQgaW4gUENCIGluIHdoaWNoIHlvdQojIGRvIHRoZSBsYXlvdXQgZm9yIHRo
ZSBmaXJzdCBjb3B5IG9mIGEgc3ViY2lyY3VpdCwgdHVybiBvZmYgJ1JlcXVpcmUKIyB1bmlxdWUg
ZWxlbWVudCBuYW1lcycsIGNvcHkgdGhlIHN1YmNpcmN1aXQgbGF5b3V0LCBwYXN0ZSB0aGF0IHN1
YmNpcmN1aXQKIyBsYXlvdXQgZXhhY3RseSBvbmNlLCB0aGVuIHJ1biB0aGlzIHNjcmlwdCB0byBn
ZXQgdGhlIHJlZmRlc2VzIHNldCByaWdodC4KIyBBdCBzb21lIHBvaW50IHlvdSBwcm9iYWJseSBo
YXZlIHRvIGRlbGV0ZSB0aGUgbm90LWxheWVkLW91dCBvcmlnaW5hbAojIGVsZW1lbnRzIHdpdGgg
dGhlIGFkb3B0ZWQgbmFtZXMgYXMgd2VsbC4KIwojIFRvIGRvIHRoZSBhYm92ZSB3ZSB0YWtlIGEg
cGNiIGZpbGUgbmFtZSB3aGljaCBzaG91bG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cyB0d2luXC4vCiAgICAgICAgICAgIG9yIGRpZSAibW9yZSB0aGFuIHR3
byBzZWxlY3RlZCBlbGVtZW50cyB3aXRoIHJlZmRlcyAnJDEnIjsgCiAgICAgICAgIyBhbmQgcmVt
ZW1iZXIgdGhhdCB3ZSd2ZSBzZWVuIGJvdGguCiAgICAgICAgJHJkeyRjcn0gLj0gIiwgYW5kIHNv
IGhhcyBpdHMgdHdpbi4iOwogICAgfQp9ICMgfX19MQoKd2hpbGUgKCBteSAoJHJkLCAkc3RhdHVz
KSA9IGVhY2goJXJkKSApIHsKICAgICRzdGF0dXMgZXEgIkhhcyBiZWVuIHNlZW4sIGFuZCBzbyBo
YXMgaXRzIHR3aW4uIgogICAgICAgIG9yIGRpZSAiZGlkbid0IGZpbmQgZXhhY3RseSB0d28gc2Vs
ZWN0ZWQgZWxlbWVudHMgd2l0aCByZWZkZXMgJyRyZCciOwp9CgpvcGVuKFBGLCAiPiRwZiIpIG9y
IGRpZSAiZmFpbGVkIHRvIG9wZW4oKSBmaWxlICckcGYnIGZvciB3cml0aW5nOiAkISI7CnByaW50
IFBGIEBwZmw7CmNsb3NlKFBGKSBvciBkaWUgImZhaWxlZCB0byBjbG9zZSgpIGZpbGUgJyRwZic6
ICQhIjsKCmV4aXQgMDsK
--089e015384fadea50d04f608779f--

- Raw text -


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