# pcb-rnd official 2-layer default board

ha:pcb-rnd-board-v8 {
 li:styles {
   ha:Signal {
    via_proto = 0
    text_scale = 100
    thickness = 10.0mil
    clearance = 20.0mil
   }
   ha:Power {
    via_proto = 1
    text_scale = 100
    thickness = 20.0mil
    clearance = 20.0mil
   }
   ha:Fat {
    via_proto = 2
    text_scale = 100
    thickness = 80.0mil
    clearance = 25.0mil
   }
   ha:Sig-tight {
    via_proto = 3
    text_scale = 100
    thickness = 10.0mil
    clearance = 12.0mil
   }
 }

 ha:meta {
   ha:size {
    thermal_scale = 0.500000
    x = 127.0mm; y = 127.0mm
    isle_area_nm2 = 200000000.0
   }
   ha:grid {
    spacing = 25.0mil
    offs_x = 0.0
    offs_y = 0.0
   }
 }

 ha:data {
  li:padstack_prototypes {
   ha:ps_proto_v6.0 {
     hdia=0.8mm; hplated=1; htop=0; hbottom=0;
     li:shape {
       ha:ps_shape_v4 {
        ha:ps_circ { x=0.0; y=0.0; dia=2.0mm; }
        ha:layer_mask { copper = 1; top = 1; }
        clearance=0.0
       }
       ha:ps_shape_v4 {
        ha:ps_circ { x=0.0; y=0.0; dia=2.0mm; }
        ha:layer_mask { copper = 1; bottom = 1; }
        clearance=0.0
       }
       ha:ps_shape_v4 {
        ha:ps_circ { x=0.0; y=0.0; dia=2.0mm; }
        ha:layer_mask { copper = 1; intern = 1; }
        clearance=0.0
       }
     }
   }

   ha:ps_proto_v6.1 {
     hdia=1.0mm; hplated=1; htop=0; hbottom=0;
     li:shape {
       ha:ps_shape_v4 {
        ha:ps_circ { x=0.0; y=0.0; dia=2.2mm; }
        ha:layer_mask { copper = 1; top = 1; }
        clearance=0.0
       }
       ha:ps_shape_v4 {
        ha:ps_circ { x=0.0; y=0.0; dia=2.2mm; }
        ha:layer_mask { copper = 1; bottom = 1; }
        clearance=0.0
       }
       ha:ps_shape_v4 {
        ha:ps_circ { x=0.0; y=0.0; dia=2.2mm; }
        ha:layer_mask { copper = 1; intern = 1; }
        clearance=0.0
       }
     }
   }

   ha:ps_proto_v6.2 {
     hdia=1.2mm; hplated=1; htop=0; hbottom=0;
     li:shape {
       ha:ps_shape_v4 {
        ha:ps_circ { x=0.0; y=0.0; dia=3.5mm; }
        ha:layer_mask { copper = 1; top = 1; }
        clearance=0.0
       }
       ha:ps_shape_v4 {
        ha:ps_circ { x=0.0; y=0.0; dia=3.5mm; }
        ha:layer_mask { copper = 1; bottom = 1; }
        clearance=0.0
       }
       ha:ps_shape_v4 {
        ha:ps_circ { x=0.0; y=0.0; dia=3.5mm; }
        ha:layer_mask { copper = 1; intern = 1; }
        clearance=0.0
       }
     }
   }

   ha:ps_proto_v6.3 {
     hdia=0.8mm; hplated=1; htop=0; hbottom=0;
     li:shape {
       ha:ps_shape_v4 {
        ha:ps_circ { x=0.0; y=0.0; dia=64mil; }
        ha:layer_mask { copper = 1; top = 1; }
        clearance=0.0
       }
       ha:ps_shape_v4 {
        ha:ps_circ { x=0.0; y=0.0; dia=64mil; }
        ha:layer_mask { copper = 1; bottom = 1; }
        clearance=0.0
       }
       ha:ps_shape_v4 {
        ha:ps_circ { x=0.0; y=0.0; dia=64mil; }
        ha:layer_mask { copper = 1; intern = 1; }
        clearance=0.0
       }
     }
   }
  }   li:layers {
     ha:top-sig         { lid=0; group=3; ha:attributes { {pcb-rnd::key::select}={<Key>l; <Key>t}; {pcb-rnd::key::vis}={<Key>l; Shift<Key>t} }}
     ha:bottom-sig      { lid=1; group=6; ha:attributes { {pcb-rnd::key::select}={<Key>l; <Key>b}; {pcb-rnd::key::vis}={<Key>l; Shift<Key>b} }}
     ha:top-gnd         { lid=2; group=3; }
     ha:bottom-gnd      { lid=3; group=6; }
     ha:top-vcc         { lid=4; group=3; }
     ha:bottom-vcc      { lid=5; group=6; }
     ha:outline         { lid=6; group=5; }
     ha:bottom-silk     { lid=7; group=8; ha:combining { auto=1; }; ha:attributes { {pcb-rnd::key::select}={<Key>l; <Key>x}; {pcb-rnd::key::vis}={<Key>l; Shift<Key>x} } }
     ha:top-silk        { lid=8; group=1; ha:combining { auto=1; }; ha:attributes { {pcb-rnd::key::select}={<Key>l; <Key>s}; {pcb-rnd::key::vis}={<Key>l; Shift<Key>s} } }
     ha:top-paste       { lid=9; group=0; ha:combining { auto=1; } }
     ha:top-mask        { lid=10; group=2; ha:combining { sub=1; auto=1; } }
     ha:bottom-mask     { lid=11; group=7; ha:combining { sub=1; auto=1; } }
     ha:bottom-paste    { lid=12; group=9; ha:combining { auto=1; } }
     ha:slot-plated     { lid=13; group=10; ha:combining { auto=1; } }
     ha:slot-unplated   { lid=14; group=11; ha:combining { auto=1; } }
     ha:top-assy        { lid=15; group=12; color={#444444}; }
     ha:bot-assy        { lid=16; group=13; color={#444444}; }
     ha:fab             { lid=17; group=14; ha:combining { auto=1; }; color={#222222}; }
   }
 }

 ha:layer_stack {
  li:groups {
   ha:0 {
    name = top_paste
    ha:type { top=1; paste=1; }
    li:layers { 9; }
   }
   ha:1 {
    name = top_silk
    ha:type { silk=1; top=1; }
    li:layers { 8; }
   }
   ha:2 {
    name = top_mask
    ha:type { top=1; mask=1; }
    li:layers { 10; }
   }
   ha:3 {
    name = top_copper
    ha:type { copper=1; top=1; }
    li:layers { 0; 2; 4; }
   }
   ha:4 {
    ha:type { substrate=1; intern=1; }
    ha:attributes { thickness=1.6mm }
    li:layers { }
    name = grp_4
   }
   ha:5 {
    name = global_outline
    ha:type { boundary=1; }
    purpose = uroute
    li:layers { 6; }
   }
   ha:6 {
    name = bottom_copper
    ha:type { bottom=1; copper=1; }
    li:layers { 1; 3; 5; }
   }
   ha:7 {
    name = bottom_mask
    ha:type { bottom=1; mask=1; }
    li:layers { 11; }
   }
   ha:8 {
    name = bottom_silk
    ha:type { silk=1; bottom=1; }
    li:layers { 7; }
   }
   ha:9 {
    name = bottom_paste
    ha:type { bottom=1; paste=1; }
    li:layers { 12; }
   }
   ha:10 {
    name = pmech
    ha:type { mech=1; }
    purpose = proute
    li:layers { 13; }
   }
   ha:11 {
    name = umech
    ha:type { mech=1; }
    purpose = uroute
    li:layers { 14; }
   }
   ha:12 {
    name = top_assy
    ha:type { top=1; doc=1; }
    purpose = assy
    ha:attributes { init-invis=1; }
    li:layers { 15; }
   }
   ha:13 {
    name = bot_assy
    ha:type { bottom=1; doc=1; }
    purpose = assy
    ha:attributes { init-invis=1; }
    li:layers { 16; }
   }
   ha:14 {
    name = fab
    ha:type { top=1; doc=1; }
    purpose = fab
    ha:attributes { init-invis=1; }
    li:layers { 17; }
   }
  }
 }
}
