lib_add_symbol_text
Adds multiple free-text labels to a schematic symbol in a single call, covering polarity marks, pin-group headings, and NC annotations.
Instructions
Add MANY body-text items to the current symbol in ONE call.
PREFER THIS over adding text one at a time (there is no singular variant). Free text on a symbol is an Altium ISch_Label: the polarity marks, pin-group headings and "NC" annotations that carry meaning the geometry alone does not.
Args:
texts: List of text dicts, each with:
- text (str, required). Empty strings are refused,
not placed: an empty label is invisible and
unselectable, and only turns up later as a stray
object.
- x, y (int, mils)
- rotation (int, default 0), 0/90/180/270
- font_size (int, default 10). Altium's own font size,
the number its font manager takes. NOT mils, and not
converted from mils: the relationship between the two
is not documented anywhere this project can verify, so
a conversion here would silently resize every item.
- font_name (str, default "Arial")
- bold, italic (bool, default False)
- owner_part_id (int, optional). Same meaning as in
lib_add_pins: 1..part_count picks a sub-part, 0
shares the text across all of them. Omit for
single-part symbols.
Returns:
Dict with added, failed, total counts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| texts | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||