lib_generate_footprint_ipc7351
Generate IPC-7351B compliant KiCad footprints for common SMD and through-hole packages, choose density levels, and save them as .kicad_mod files.
Instructions
Generate an IPC-7351B compliant KiCad footprint (.kicad_mod) and save it.
Supported packages: 0201, 0402, 0603, 0805, 1206, 1210, 2512 (chip passives), SOT-23, SOIC, SOP, SSOP, TSSOP (dual SMD), QFP, LQFP, TQFP (quad flat), QFN, DFN (no-lead), BGA (ball grid array), PinHeader (through-hole).
Args:
package: Package family name (case-insensitive).
density: IPC-7351B density level: A (generous), B (nominal), C (compact).
pin_count: Number of leads / balls (required for multi-lead packages).
pitch_mm: Lead pitch in mm.
body_l_mm: Body length in mm.
body_w_mm: Body width in mm (QFP only; defaults to body_l_mm).
rows: BGA rows or PinHeader row count (1 or 2).
exposed_pad_mm: Exposed pad size for QFN in mm.
ball_diameter_mm: BGA ball diameter in mm.
output_path: Optional relative path inside output_dir. Defaults to
footprints/<package>.kicad_mod.
Returns: Confirmation with the saved file path, or an error message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | ||
| density | No | B | |
| package | Yes | ||
| pitch_mm | No | ||
| body_l_mm | No | ||
| body_w_mm | No | ||
| pin_count | No | ||
| output_path | No | ||
| exposed_pad_mm | No | ||
| ball_diameter_mm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |