lib_add_symbol_rectangle
Add a rectangle to the current symbol body before placing pins so filled shapes do not paint over pin names in the schematic symbol.
Instructions
Add a rectangle to the current symbol body.
ADD THE BODY BEFORE THE PINS. Altium exposes no z-order on
schematic primitives, so drawing order is insertion order and
there is no send-to-back to correct it afterwards. A rectangle
given a fill_color is SOLID, and one added after the pins paints
over the pin names; the only fix is rebuilding the symbol. Build
order is body, then pins, then anything drawn on top.
Args: x1: First corner X in mils y1: First corner Y in mils x2: Opposite corner X in mils y2: Opposite corner Y in mils fill_color: Fill color index (-1 = no fill) border_color: Border color index
Returns: Dictionary confirming rectangle addition
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>"
},
"name": "lib_add_symbol_rectangle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | ||
| x2 | Yes | ||
| y1 | Yes | ||
| y2 | Yes | ||
| fill_color | No | ||
| border_color | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||