
(rules PCB batterystation
  (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 157)
    (layer_rule F.Cu
      (active on)
      (preferred_direction horizontal)
      (preferred_direction_trace_costs 1.0)
      (against_preferred_direction_trace_costs 2.2)
    )
    (layer_rule B.Cu
      (active on)
      (preferred_direction vertical)
      (preferred_direction_trace_costs 1.0)
      (against_preferred_direction_trace_costs 1.9)
    )
  )
  (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 +5V "/STC4054_Liion_Charge/BAT_LIION_CHRG" "Net-(C4-Pad1)" /LT1512/Vsw "Net-(C7-Pad2)" /LT1512/Vcomp "Net-(C8-Pad1)"
    "/LT1512/I_Feedback" "/LT1512/LT_BATCHRG" "Net-(D1-Pad2)" "/STC4054_Liion_Charge/CHRG" +12V "Net-(J1-Pad1)" "Net-(J1-Pad2)" "Net-(J1-Pad3)"
    "Net-(J1-Pad5)" "Net-(J1-Pad6)" "Net-(J1-Pad7)" "Net-(J1-Pad8)" "Net-(J1-Pad9)" "Net-(J1-Pad10)" "Net-(J1-Pad11)" "/MAX_CS"
    "/NANO_CS" "/NANO_MOSI" "/NANO_MISO" "/NANO_SCK" "Net-(J1-Pad17)" "Net-(J1-Pad18)" "Net-(J1-Pad19)" "Net-(J1-Pad20)"
    "Net-(J1-Pad21)" "Net-(J1-Pad22)" "Net-(J1-Pad23)" "Net-(J1-Pad24)" "Net-(J1-Pad25)" "Net-(J1-Pad26)" "Net-(J1-Pad28)" "Net-(J1-Pad30)"
    "/LT1512/LT_IFEEDBACK" "Net-(P4-Pad4)" "/CurrentSense_INA169_1/LOADOUT" "/CurrentSense_INA169_1/LOADIN" "/CurrentSense_INA169_1/CurrentOUT" /sheet5CBEAB48/CurrentOUT /sheet5CBEAB48/LOADIN /sheet5CBEAB48/LOADOUT
    "Net-(P5-Pad4)" "Net-(P6-Pad4)" /sheet5CBEAC38/LOADOUT /sheet5CBEAC38/LOADIN /sheet5CBEAC38/CurrentOUT "/STC4054_Liion_Charge/PROG" /MAX6675/T+ /MAX6675/NC
    "/ENC28J60/VCC_Branch" /ENC28J60/INT /ENC28J60/CLKOUT /ENC28J60/WOL /ENC28J60/RSTENC /ENC28J60/Q3 "/LT1512/LT_FloatVoltage" /LT1512/LTShutdownPin
    "Net-(R3-Pad2)" "Net-(R5-Pad1)" "Net-(R6-Pad1)" "Net-(R7-Pad1)" "Net-(R8-Pad1)" "Net-(R8-Pad2)" "Net-(SW2-Pad2)"
    (clearance_class "kicad_default")
    (via_rule kicad_default)
    (rule
      (width 254.0)
    )
    (circuit 
      (use_layer F.Cu B.Cu)
    )
  )
)