place_footprint
Place a footprint on a PCB, copying pads, silkscreen, courtyard, and 3D model from a KiCad library, or add a pad-less marker when no library is given.
Instructions
Place a footprint on the PCB.
Name a library and a footprint to place the real thing: its pads, silkscreen,
courtyard and 3D model are copied from the library file exactly as KiCad
would place them. Without them you get a marker carrying only the reference
and value, which has NO PADS and so cannot be routed or checked; that is the
older behaviour and it is kept for callers that only want a placeholder.
Use list_lib_footprints to see what a library holds.
Args:
reference: Reference designator (e.g. "R2")
value: Component value (e.g. "4.7K")
x: X position in mm
y: Y position in mm
rotation: Rotation in degrees
layer: Layer (F.Cu or B.Cu)
library: Footprint library nickname (e.g. "Resistor_SMD"), or a path to a
.pretty directory. Optional; omit for a pad-less marker.
footprint: Footprint name within that library (e.g. "R_0805_2012Metric").
Required when library is given.
pcb_path: Path to .kicad_pcb file. Optional; omit to use the configured default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| layer | No | F.Cu | |
| value | Yes | ||
| library | No | ||
| pcb_path | No | ||
| rotation | No | ||
| footprint | No | ||
| reference | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |