Check one proposed footprint position
check_placementVerify if placing a footprint at a given coordinate violates PCB placement constraints before moving it.
Instructions
Check if placing/moving a footprint to (x, y) would violate constraints.
Both checks are on the footprint's origin point, not its courtyard, so a
footprint whose body overlaps a keep-out while its origin does not still
reports ok. That is also why there is no rotation parameter: rotating about
the origin cannot move the origin, so an angle could not change either
answer.
Args:
reference: Footprint reference designator
x: Proposed X position
y: Proposed Y position
pcb_path: Path to .kicad_pcb file. Optional; omit to use the configured default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| pcb_path | No | ||
| reference | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| board_edge_checked | Yes | ||
| keepout_violations | Yes | ||
| outside_board_edge | Yes |