sch_free_space
Find free, grid-aligned rectangles of a given size on a KiCad schematic page, closest to a preferred point, for collision-free block placement.
Instructions
Find free, grid-aligned rectangles of w x h mm on a page, nearest to a point. Use to place a new block without collisions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | Yes | ||
| w | Yes | ||
| near | No | [x, y] mm | |
| count | No | ||
| sheet | Yes | Page: name path (/Power/), sheet or instance name (HighSideSwitch12V_PumpMain) or file name | |
| project | Yes | Path to .kicad_pro, root .kicad_sch or the project directory |