audit_find_off_grid_components
Detect schematic components placed off the snap grid to catch pins that look wired but miss netlist connections. Returns checked counts and off-grid items with dx/dy offsets for realignment.
Instructions
Find schematic components placed off the snap grid.
Schematic best practice: components sit on a 100-mil (or whatever the project standard is) grid so pins land predictably on wire endpoints. Off-grid placement is the classic "I edited around it and never resnapped" trap: the symbol LOOKS wired but the pin doesn't actually touch the wire, ERC silently passes (no visible net) and the connection is missing on the netlist.
Args: grid_mils: Grid size to check against (default 100). Use 50 if your sheets are set to a half-step grid.
Returns:
Dict with:
- checked: total placed components inspected
- violations: off-grid component count
- grid_mils: echo of the grid used
- items: per-violation {designator, sheet, at, dx, dy} where dx/dy are the off-grid magnitudes in
mils. Snap to -dx / -dy (or whichever direction
is closer) to restore grid alignment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grid_mils | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||