main
Drew Owens Add KiCad 10 Spine PCB, STEP, Gerbers/BOM/CPL, and parametric mechanical CAD/STL/STEP e614ae8
# adom-aiflow rules: adom-3rdpartyfab 2L (from adom/pcb-design-rules)
(version 1)

# 3rd party fab 2-layer design rules (standard process)
# 
# Min trace width: 0.085 mm (3.35 mil) - 1 oz copper
# Min spacing: 0.085 mm (3.35 mil) - 1 oz copper, different nets
# Min drill: 0.15 mm (5.91 mil)
# Min via: 0.15 mm hole / 0.25 mm pad
# Annular ring: via 0.1 mm, pad 0.18 mm
# Copper to board edge: 0.2 mm
# Hole to hole: 0.2 mm
# Drill range: 0.15 mm to 6.3 mm
# Board thickness options: 1.6 mm
# Copper weight options: 1 oz, 2 oz
# Max board size: 340 x 290 mm
# 
# Baseline of the 3rd party fab service. Preferred values in the seed file: default class preferred track 0.2 mm, power class preferred 0.3 mm; preferred via hole 0.2 mm (0.25 mm in the shipped file). Min via allowed on 2-layer. Finished surface copper: 1 oz standard; 2 oz on request (John Lauer, 2026-10-12). Existing weight-conditioned DRC limits remain for 1 oz; confirm 2 oz DFM before use. Hole-barrel plating and thickness tolerances are not specified by this confirmation. Min trace and space 0.085 mm on every layer count, 8 layers maximum (John Lauer, 2026-10-30). Panel 380 x 300 mm with 20 mm X and 5 mm Y margins, so the largest board is the 340 x 290 mm usable area (Adonis Lysandrou, 2026-06-17 and 2026-11-04); boards per panel and the open questions are in docs/3rdpartyfab-panel-and-board-size.md.
# 
# Sources:
# - adom/fusion-bridge addin/AdomBridge/resources/dru/Adom-3rdPartyFab-2-Layer.edru (read 2026-09-03)
# - https://wiki.adom.inc/adom/pcb-design-rules/files/docs/3rdpartyfab-finished-copper.md (read 2026-10-12)
# - https://wiki.adom.inc/adom/pcb-design-rules/files/docs/3rdpartyfab-trace-and-layers.md (read 2026-10-30)
# - https://wiki.adom.inc/adom/pcb-design-rules/files/docs/3rdpartyfab-panel-and-board-size.md (read 2026-11-10)

(rule "min-track-width"
  (constraint track_width (min 0.085mm))
  (layer "*.Cu")
  (condition "A.type == 'track'"))

(rule "min-clearance"
  (constraint clearance (min 0.085mm))
  (condition "A.type == 'track' && B.type == 'track'"))

(rule "min-hole"
  (constraint hole (min 0.15mm))
  (condition "A.type == 'pad' || A.type == 'via'"))

(rule "min-via-diameter"
  (constraint via_diameter (min 0.25mm))
  (condition "A.type == 'via'"))

(rule "min-edge-clearance"
  (constraint edge_clearance (min 0.2mm))
  (condition "A.type == 'track'"))