delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2018/02/03/10:59:20

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Sat, 3 Feb 2018 16:58:04 +0100 (CET)
From: Roland Lutz <rlutz AT hedmen DOT org>
To: "Richard Rasker (rasker AT linetec DOT nl) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
Subject: Re: [geda-user] Net length info question
In-Reply-To: <0a59af1c-d27e-2b2f-f649-fd5f84ae7fc5@linetec.nl>
Message-ID: <alpine.DEB.2.20.1802031654070.3102@nimbus>
References: <0a59af1c-d27e-2b2f-f649-fd5f84ae7fc5 AT linetec DOT nl>
User-Agent: Alpine 2.20 (DEB 67 2015-01-07)
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-38784847-1517673484=:3102
Content-Type: text/plain; charset=US-ASCII; format=flowed

Hi Richard,

On Sat, 3 Feb 2018, Richard Rasker (rasker AT linetec DOT nl) [via 
geda-user AT delorie DOT com] wrote:
> with the cursor over the net, is there a way to report the net length up 
> to the cursor, even when the total length is more?

I've been using the attached script to measure arbitrary "found" nets. 
You should easily be able to change this to "selected" or any other 
criterion you need.  (This method does require you to save the file, 
though.)

Roland

--8323329-38784847-1517673484=:3102
Content-Type: text/x-python; name=measure.py
Content-Transfer-Encoding: BASE64
Content-ID: <alpine DOT DEB DOT 2 DOT 20 DOT 1802031658040 DOT 3102 AT nimbus>
Content-Description: 
Content-Disposition: attachment; filename=measure.py

IyEvdXNyL2Jpbi9lbnYgcHl0aG9uDQppbXBvcnQgbWF0aCwgcmUsIHN5cw0K
DQpSRV9MSU5FID0gcmUuY29tcGlsZSgNCiAgICAnXHRMaW5lXFsoW14gXSop
IChbXiBdKikg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SAtIHgwLCB5MSAtIHkwKQ0KDQpwcmludCBsDQo=

--8323329-38784847-1517673484=:3102--

- Raw text -


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