<pcbnoterect />
Overview
The <pcbnoterect /> element draws rectangles on the PCB. It's useful for highlighting specific areas, creating visual boundaries, marking keep-out zones, or organizing sections of your board layout.
Rectangles can be outlined, filled, or both, with customizable colors and stroke styles.
Basic Examples
Simple Outlined Rectangle
Filled Rectangle
Dashed Border Rectangle
Using Color Names
Any web-compatible color name or hex code can be used for the color property.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
| pcbX | distance | Yes | - | X coordinate of the rectangle center |
| pcbY | distance | Yes | - | Y coordinate of the rectangle center |
| width | distance | Yes | - | Width of the rectangle in mm |
| height | distance | Yes | - | Height of the rectangle in mm |
| strokeWidth | distance | No | 0.1 | Width of the rectangle border in mm |
| color | string | No | - | Rectangle color as a web-compatible color name or hex string (e.g., "yellow", "#ff0000") |
| isFilled | boolean | No | false | Whether the rectangle is filled with color |
| hasStroke | boolean | No | true | Whether the rectangle has a border |
| isStrokeDashed | boolean | No | false | Whether the border is drawn with dashes |
| layer | string | No | - | PCB layer to place rectangle on |