delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2016/04/28/23:54:23

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Fri, 29 Apr 2016 05:54:59 +0200 (CEST)
X-X-Sender: igor2 AT igor2priv
To: "James Battat (jbattat AT wellesley DOT edu) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
X-Debug: to=geda-user AT delorie DOT com from="gedau AT igor2 DOT repo DOT hu"
From: gedau AT igor2 DOT repo DOT hu
Subject: Re: [geda-user] modifying the width of a group of tracks in pcb
In-Reply-To: <188AA225-D025-42A2-B798-72B46BCB5916@wellesley.edu>
Message-ID: <alpine.DEB.2.00.1604290550360.28818@igor2priv>
References: <188AA225-D025-42A2-B798-72B46BCB5916 AT wellesley DOT edu>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
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


On Thu, 28 Apr 2016, James Battat (jbattat AT wellesley DOT edu) [via geda-user AT delorie DOT com] wrote:

> I designed a board with some 50 ohm microstrip tracks, whose widths (13.5mil) were chosen for a particular board house.  I now need to use a different board house, with a different dielectric and prepreg thickness, and so will need to change the widths of all of my 50ohm tracks.
>
> Many tracks in my layout are also 13.5 mil wide even though they are not meant to be controlled impedance runs.  I?d like to leave these alone and only modify the width of the 50ohm runs. For future boards, I?ll definitely only use the 50ohm trace width for 50ohm traces, in which case a straight sed search/replace will do what I need.  But in the meantime, any recommendations for doing a batch modification of the trace width of a group of selected traces?

I'd do it like this:

1. open the design in pcb, clear selection
2. select all microstrip tracks
3. save & quit
4. write an awk one-liner that modifies the width value in the pcb file if 
the same line matches "^[ \t]*Line[[].*selected"
5. open the new design in pcb, microstrip lines should be still selected, 
manually check the result at a few places randomly

HTH,

Igor2


- Raw text -


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