
(rules PCB pcb
  (snap_angle 
    fortyfive_degree
  )
  (autoroute_settings
    (fanout off)
    (autoroute on)
    (postroute on)
    (vias on)
    (via_costs 50)
    (plane_via_costs 5)
    (start_ripup_costs 100)
    (start_pass_no 28)
    (layer_rule F.Cu
      (active on)
      (preferred_direction horizontal)
      (preferred_direction_trace_costs 1.0)
      (against_preferred_direction_trace_costs 4.7)
    )
    (layer_rule B.Cu
      (active on)
      (preferred_direction vertical)
      (preferred_direction_trace_costs 1.0)
      (against_preferred_direction_trace_costs 1.3)
    )
  )
  (rule
    (width 254.0)
    (clear 254.2)
    (clear 127.0 (type smd_to_turn_gap))
    (clear 63.6 (type smd_smd))
  )
  (padstack "Via[0-1]_685.8:330.2_um"
    (shape
      (circle F.Cu 685.8 0.0 0.0)
    )
    (shape
      (circle B.Cu 685.8 0.0 0.0)
    )
    (attach off)
  )
  (via 
    "Via[0-1]_685.8:330.2_um" "Via[0-1]_685.8:330.2_um" default
  )
  (via 
    "Via[0-1]_685.8:330.2_um-kicad_default" "Via[0-1]_685.8:330.2_um" "kicad_default"
  )
  (via_rule
    default "Via[0-1]_685.8:330.2_um"
  )
  (via_rule
    "kicad_default" "Via[0-1]_685.8:330.2_um-kicad_default"
  )
  (class default
    (clearance_class default)
    (via_rule default)
    (rule
      (width 254.0)
    )
    (circuit 
      (use_layer F.Cu B.Cu)
    )
  )
  (class "kicad_default"
    GND /BATT12V+ "Net-(P1-Pad1)" +12V /DIM+ "/Front_Rch-" "/Rear_Rch-" "Net-(P5-Pad1)"
    "/DIN-" "/Front_Lch+" "/Rear_Lch+" "/Front_Rch+" "/Rear_Rch+" /SW+12V /+BCH "/AMP_SENS"
    "/Rear_Lch-" "/Front_Lch-" /PARK "Net-(P2-Pad1)" "Net-(P7-Pad2)" "Net-(P7-Pad1)" /IGN12V+ /BATGROUND
    /duid1 /duid0 /duireset /duid2 /duid3 /duid4 /duid5 /duid6
    /duid7 /duid8 /duid9 /duid10 /duid11 /duid12 /duid13 /dui3v3
    /duiaref /duia0 /duia1 /duia2 /duia3 /SDATA /SCLK /duia6
    /duia7 /dui5v
    (clearance_class "kicad_default")
    (via_rule kicad_default)
    (rule
      (width 254.0)
    )
    (circuit 
      (use_layer F.Cu B.Cu)
    )
  )
)