sch_find_free_placement
Find collision-free coordinates for placing new schematic symbols. Get safe (x, y) positions that avoid overlapping existing symbols.
Instructions
Find N collision-free placement coordinates for new symbols.
Reads the current schematic, builds an occupancy grid from all existing
symbols, and returns count coordinate pairs that do not overlap with
any placed symbol. Call this before sch_add_symbol to get safe (x, y)
values.
Args: count: Number of free coordinate slots to return (default 1, max 64). cell_width_mm: Grid cell width in mm (default 25.4 — one 10-mil grid unit). cell_height_mm: Grid cell height in mm (default 17.78).
Returns: A list of (x_mm, y_mm) coordinate pairs, one per requested slot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| cell_width_mm | No | ||
| cell_height_mm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |