delorie.com/archives/browse.cgi | search |
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=GpsdAnCurJTXv0T69Wj/wI9fPelurRFiafUYIVc0ti0=; | |
b=F6iap/kgRa8wh0Wti/xUXEsF80mRTpZla1D8SDg3Oqkog2an4IIMxtEoTGsbr4h5DX | |
j0n/I4xlzWQxR9CKIlpIfk0j8lmhJO8jCkdytSUnm1PWKZJgFah8Ctlz5IPpAeerBohs | |
IU64kWpHHQcKAbjr+0i3xVDuyJSlJhMs8lHcBOXymD78UmTQcqIdfm2YxHM10R7n6zW3 | |
rbO+6F7SV6NbPsSeRD2x/xqVK0slQ079DbnwQaOl8IZ45cX/C4dy8fEoj8VFJKo7a4tx | |
cEdMACLVX9AoW909WPAvBJSbHMbV67QL4IMsLhWLGuGroNyw/BYylxLqES8aPmy0oKX1 | |
jN5Q== | |
MIME-Version: | 1.0 |
X-Received: | by 10.60.85.39 with SMTP id e7mr21878494oez.94.1370613512208; Fri, |
07 Jun 2013 06:58:32 -0700 (PDT) | |
In-Reply-To: | <CAG4ve9KeBYS_Gs_5y2o6ZWVREq0tEFtJiEQbX692SbRzTdSxgw@mail.gmail.com> |
References: | <CACPio-6QgmXwj8LwYoR6zq1hfXHh8ymmnDNhrJd5oEVg6pt0Gg AT mail DOT gmail DOT com> |
<CACPio-7zTB0N7x8hGALcZzGgaCAexKr5DUb4imd=QAzH7Pj61A AT mail DOT gmail DOT com> | |
<CAG4ve9Jm00oyLb7uLgQjSTjfBpXOL9a0tXkjAQx09325ibChPg AT mail DOT gmail DOT com> | |
<CACPio-7ucw-yxsykwOyV+p=+xUqKbwHLhQv1ODNS9Qd+gf3GPQ AT mail DOT gmail DOT com> | |
<CAG4ve9KAB6POcUvMhh3KsCt3eRyWus8L+V1WFyupgL-4QckRJA AT mail DOT gmail DOT com> | |
<CACPio-7yV1a08b99NyjrGtD0b7qdKWxLPQxA0nUr3qAL9yz7pQ AT mail DOT gmail DOT com> | |
<CAG4ve9KKG_4Z6V0V3HCjAjo6jwD=t5AmwGdVgGqYJbM9q6B_zA AT mail DOT gmail DOT com> | |
<CACPio-66SHLWYAusnwq0acYBL+QX0uwuuT8zeUotYE90a5pCHQ AT mail DOT gmail DOT com> | |
<CAG4ve9KeBYS_Gs_5y2o6ZWVREq0tEFtJiEQbX692SbRzTdSxgw AT mail DOT gmail DOT com> | |
Date: | Fri, 7 Jun 2013 17:58:31 +0400 |
Message-ID: | <CAG4ve9+wP0VAnXAFpB+gJQHUphnNTYn71_wBphuMafL09k9YnQ@mail.gmail.com> |
Subject: | Re: [geda-user] Re: refdes renumber |
From: | =?KOI8-R?B?4czFy9PFyiDowdLYy8/X08vJyg==?= <svetonomer 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 |
--089e0111b6aa8559e104de90d337 Content-Type: multipart/alternative; boundary=089e0111b6aa8559dd04de90d335 --089e0111b6aa8559dd04de90d335 Content-Type: text/plain; charset=ISO-8859-1 This script completely compatible with refdes_renum script of geda project. Main difference of this script that his renumber REFDESs attribute in schematic files or schematic and PCB files sumaltenuously. Also this script can read the project file and renumber REFDESs in all files of current project. New option (versus refdes_renum of geda-gaf project) is: --sort option allowing useage various method of renumber as well as gschem text renumber tool ( diagonal, top to bottom, bottom to top, left to right, right to left, file) --component option allowing component coordinate instead coordinate of text attribute (REFDES) --log write to stdout Summary report. If using with --verbose option also write to stdout, context information of replace. In future I planning add --graph option for GUI to this script, similar gschem TU (autonumber text tool) window. --089e0111b6aa8559dd04de90d335 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><br><div><div><div><div>This script <span id=3D"result_box= " class=3D"" lang=3D"en"><span class=3D"">completely compatible with refdes= _renum script of geda project.<br><br></span></span></div><span id=3D"resul= t_box" class=3D"" lang=3D"en"><span class=3D"">Main difference of this scri= pt that his renumber REFDESs attribute in schematic files or schematic and = PCB files sumaltenuously. <br> </span></span></div><span id=3D"result_box" class=3D"" lang=3D"en"><span cl= ass=3D"">Also this script can read the project file and renumber REFDESs in= all files of current project.<br><br></span></span></div><span id=3D"resul= t_box" class=3D"" lang=3D"en"><span class=3D"">New option (versus refdes_re= num of geda-gaf project) is:<br> </span></span></div><span id=3D"result_box" class=3D"" lang=3D"en"><span cl= ass=3D"">--sort option allowing useage various method of renumber as well a= s gschem text renumber tool ( diagonal, top to bottom, bottom to top, left = to right, right to left, file)<br> </span></span><table class=3D""><tbody><tr><td>--component option allowing = component coordinate instead coordinate of text attribute (REFDES)<br>--log= write to stdout Summary report. If using with --verbose option also write = to stdout, context information of replace.<br> <br>In future I planning add --graph option for GUI to this script, similar= gschem TU (autonumber text tool) window.<br></td></tr></tbody></table></di= v> --089e0111b6aa8559dd04de90d335-- --089e0111b6aa8559e104de90d337 Content-Type: application/octet-stream; name="refdes_renum.py" Content-Disposition: attachment; filename="refdes_renum.py" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hhnefed10 IyEvdXNyL2Jpbi9lbnYgcHl0aG9uMgoKaGVscCA9ICIiIgpVc2FnZToKCglyZWZkZXNfcmVudW0u cHkgWy0tbm9jb3B5XSBbLS1wZ3NraXAgW251bWJlcl0gXSBmaWxlMS5zY2ggW2ZpbGUyLnNjaCBm aWxlLnBjYiBbIHBhdGh0by9wcm9qZWN0ZmlsZSBdIF0KCXJlZmRlc19yZW51bS5weSAtLWhlbHAK CXJlZmRlc19yZW51bS5weSAtLXZlcnNpb24KCnJlZmRlc19yZW51bS5weSByZWFkcyBhIGdzY2hl bSBzY2hlbWF0aWMgZmlsZSBvciBmaWxlcyBhbmQgcmVudW1iZ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UJFRERFRC4rP1xbLis/XF1ccytce1tee31dKnJlZmRlcz1cdypcPz9bXnt9XSpcfScsY29u dGVudCxmbGFncz1yZS5ET1RBTEwpCgkJCSNmb3Igbm9uIGVtYmVkZGVkIGNvbXBvbmVudHMKCQkJ Y29tcF9saXN0ICs9IHJlLmZpbmRhbGwoJ0NccytcZCtccytcZCtccytcZCtccytcZCtccytcZCtb XlxuXStccytce1tee31dKnJlZmRlcz1cdypcPz9bXnt9XSpcfScsY29udGVudCxmbGFncz1yZS5E T1RBTEwpCgkJZWxzZToKCQkJI2ZvciBlbWJlZGRlZCBjb21wb25lbnRzCgkJCWNvbXBfbGlzdCAg PSByZS5maW5kYWxsKCdDXHMrXGQrXHMrXGQrXHMrXGQrXHMrXGQrXHMrXGQrXHMrRU1CRURERUQu Kz9cWy4rP1xdXHMrXHtbXnt9XSpyZWZkZXM9XHcqXD9bXnt9XSpcfScsY29udGVudCxmbGFncz1y ZS5ET1RBTEwpCgkJCSNmb3Igbm9uIGVtYmVkZGVkIGNvbXBvbmVudHMKCQkJY29tcF9saXN0ICs9 IHJlLmZpbmRhbGwoJ0NccytcZCtccytcZCtccytcZCtccytcZCtccytcZCtbXlxuXStccytce1te e31dKnJlZmRlcz1cdypcP1tee31dKlx9Jyxjb250ZW50LGZsYWdzPXJlLkRPVEFMTCkKCglpZiBu b3QgY29tcF9saXN0OiAjVHJ1ZSBpZiBubyBSRUZERVNzIGZvciByZXBsYWNpbmcKCQljb250aW51 ZQoJCglwYWdlX251bSArPSBhZGRfcGFnZV9udW0gICMgQWRkaW5nIFBhZ2UgYmlhcyBmb3IgbmV3 IGZpbGUgCgkjIE9idGFpbmluZyB0aGUgY29tcG9uZW50IGxpc3QKCWZvciBpIGluIHJhbmdlKDAs bGVuKGNvbXBfbGlzdCkpOiAjRmluZCBjb29yZGluYXRlcyB0byByZXBsYWNpbmcKCQl4eSA9IGNv bXBfbGlzdFtpXS5zcGxpdChOb25lLDMpWzE6M10KCQl4eVswXSA9IGlud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aW50ICdT dW1tYXJ5IHJlcGxhY2VkJwoJZm9yIGkgaW4gY29tcF9saXN0OgoJCXByaW50IGlbMF0raVt+MV0s ICcgPT4gJywgaVswXStpW34wXQoJCQoK --089e0111b6aa8559e104de90d337--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |