Mailing list archives : pcb-rnd

ID:1215
From:John Griessen <jo...@cibolo.com>
Date:Sat, 6 Jan 2018 18:11:16 -0600
Subject:[pcb-rnd] default clearance in new subcircuit footprints, fixing older ones.
replies: 1216 from Peter Stuge <pe...@stuge.se> , 1217 from ge...@igor2.repo.hu
I'm finding default clearance, (the distance polygons will open up away from a line)*2, is 40 mils.
 
I'm not sure where to change this. Anyone know?
 
Also I want to make a script to change past ones I've made and awk seems difficult since the task is to
make a change 'inside braces starting here until close braces found',
and awk's line by line operation means counting braces found to decide what to do, which sounds difficult.
 
What do you experienced programmers do for changing just the layer top in a lihata file?
I want to find and replace
%s/clearance = 40mil/clearance = 0.3mm/g
%S/clearpoly =/clearpolypoly =/g
 
only in the
     ha:top {
section.
 
  li:layers {
     ha:top {
      lid = 0
      ha:type {
       copper = 1
       top = 1
      }
      li:objects {
       ha:polygon.764554 {
        ha:attributes {
         term = 2
        }
        li:geometry {
         ta:contour {
          { 23.95mm; 3.75mm }
          { 23.95mm; 4.55mm }
          { 23.05mm; 4.55mm }
          { 23.05mm; 3.75mm }
         }
        }
        ha:flags {
         clearpolypoly = 1
         termname = 1
        }
        clearance = 0.3mm
       }
 

Reply subtree:
1215 [pcb-rnd] default clearance in new subcircuit footprints, fixing older ones. from John Griessen <jo...@cibolo.com>
  1216 Re: [pcb-rnd] default clearance in new subcircuit footprints, fixing from Peter Stuge <pe...@stuge.se>
  1217 Re: [pcb-rnd] default clearance in new subcircuit footprints, fixing from ge...@igor2.repo.hu
    1262 Re: [pcb-rnd] default clearance in new subcircuit footprints, fixing from ge...@igor2.repo.hu
      1263 Re: [pcb-rnd] default clearance in new subcircuit footprints, fixing from John Griessen <jo...@cibolo.com>