Mail Archives: geda-user/2016/04/28/23:54:23
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 -