main
John Lauer Publish 1.0.0 768468c
# 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.1 mm (3.94 mil) - 1 oz copper, different nets; copper to copper anywhere, pads included
# Min drill: 0.15 mm (5.91 mil)
# Min via: 0.1 mm hole / 0.25 mm pad
# Annular ring: via 0.1 mm, pad 0.18 mm
# Copper to board edge: 0.1 mm
# Hole to hole: 0.2 mm
# Drill range: 0.1 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 0.085 mm on every layer count, 8 layers maximum (John Lauer, 2026-10-30). Min spacing is 0.10 mm copper to copper anywhere, pads included, not 0.085 mm (Adonis Lysandrou and Colby Knox, 2026-11-13). 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. Confirmed on 2026-11-13 (Adonis Lysandrou and Colby Knox, 2026-11-13; docs/3rdpartyfab-drc-limits.md): copper to board edge 0.10 mm; via drill 0.10 mm; plated slots at least 0.40 mm wide; soldermask bridge 0.10 mm; legend line 0.06 mm and legend to pad 0.01 mm; smallest board 3 x 3 mm; 1.6 mm is the only thickness for now; single-layer boards are built with the back copper removed, which costs more than leaving it on; castellated edges are offered; one board per order, no customer panels; the board outline must be its own file and a closed shape (line ends within 0.10 mm are joined; a wider gap is a fault). Hole spacing follows JLCPCB's figures for now. Hole wall to other copper is 0.10 mm for every hole (via, plated, non-plated) on every layer (Colby Knox, 2026-11-17). 2 oz is untested: JLCPCB's 2 oz figures stand in.
# 
# 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)
# - https://wiki.adom.inc/adom/pcb-design-rules/files/docs/3rdpartyfab-drc-limits.md (read 2026-11-13)

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

(rule "min-clearance"
  (constraint clearance (min 0.1mm))
  (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.1mm))
  (condition "A.type == 'track'"))

(rule "min-silk-thickness"
  (constraint text_thickness (min 0.06mm))
  (layer "*.SilkS")
  (condition "A.type == 'text' || A.type == 'graphic'"))