wholeboard.kicad.cli¶
Run kicad-cli: design-rule checks, manufacturing exports and renders.
drc(pcb, refill=True, save=True)
¶
Run the DRC (optionally refilling zones and saving them). Returns a summary.
export_fab(pcb, out_dir, layers, extra_layers=())
¶
Gerbers + drill files (zipped for JLCPCB) and the raw placement file.
jlc_cpl(pos_csv, out, exclude_refs=frozenset(), overrides=None)
¶
Convert KiCad's position CSV into JLCPCB's CPL columns, applying JLCPCB rotation offsets.
overrides: ref -> {"rotation": offset degrees, "dx_mm": .., "dy_mm": ..} from the spec. Returns the file and the corrections made.
erc(sch)
¶
KiCad's electrical rules check on a schematic. Returns a summary.