lib_add_symbol_lines
Adds multiple line segments to a schematic symbol body in one batch call, reducing repeated editor redraws and round-trips when drawing multi-line glyphs.
Instructions
Add MANY lines to the current symbol body in ONE call.
PREFER THIS over adding lines one at a time (there is no singular variant). A 12-line LED diode glyph drawn line-by-line would be 12 LLM turns + 12 IPC round-trips + 12 redraw passes; this tool does it in one turn with a single PreProcess/PostProcess pair and one editor redraw at the end.
Args:
lines: list of dicts, each with keys x1, y1,
x2, y2 (mils, int), width (int 0-3,
default 1).
grid: snap grid (mils) for the line endpoints. Glyph lines do
NOT need the 100-mil pin grid (rule 15), so the default is
a finer 25 mils for clean glyph detail; pass 100 for the
coarse grid or 0/1 to disable snapping.
Returns:
Dict with added, failed, total counts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grid | No | ||
| lines | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||