place_near_pad
Place a component beside a target pad, outside the courtyard and aligned, to simplify decoupling capacitors, pull-ups, and series resistors.
Instructions
Place a part right next to a specific pad, just outside the target part's courtyard and aligned with the pad. Ideal for decoupling capacitors, pull-ups, and series resistors.
Args: reference: Footprint to move, e.g. 'C3'. target_reference: Part that owns the pad, e.g. 'U2'. target_pad: Pad number on the target, e.g. '13'. side: 'left', 'right', 'up', 'down', or 'auto' (the courtyard edge nearest the pad). gap_mm: Courtyard-to-courtyard gap in mm. angle_deg: Optional absolute rotation for the moved part (applied first). auto_orient: If the moved part has a pad on the target pad's net, turn it 180 degrees when that makes the same-net pad face the target (so the connecting track doesn't cross the part's other pad).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | auto | |
| gap_mm | No | ||
| angle_deg | No | ||
| reference | Yes | ||
| target_pad | Yes | ||
| auto_orient | No | ||
| target_reference | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||