add_rectangle
Draw a graphic rectangle on a KiCad PCB by defining its top-left and bottom-right coordinates, layer, outline width, and fill status.
Instructions
Add a graphic rectangle.
Args: x_min_mm, y_min_mm: Top-left corner in mm. x_max_mm, y_max_mm: Bottom-right corner in mm. layer: Layer name. width_mm: Outline width in mm. filled: Whether the rectangle is solid-filled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | F.SilkS | |
| filled | No | ||
| width_mm | No | ||
| x_max_mm | Yes | ||
| x_min_mm | Yes | ||
| y_max_mm | Yes | ||
| y_min_mm | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||