Write a SchLib
write_schlibCreates Altium Designer schematic symbol libraries (.SchLib) by writing pins, graphical shapes, and component parameters, and supports appending new symbols to existing library files.
Instructions
Write schematic symbols to an Altium .SchLib file (set 'append': true to add to an existing library instead of replacing it). Each symbol is defined by its primitives: pins, rectangles, round_rects, lines, polylines, polygons, arcs, pies, images, text_frames, beziers, ellipses, elliptical_arcs, labels, and text — plus its designator, parameters (Value, Manufacturer, ...) and footprint links ('footprints', name + optional library_path). Multi-part symbols set 'part_count' and tag each pin with 'owner_part_id'. Coordinates must be in schematic units (10 units = 1 grid square, not mm); a pin's (x, y) is its body-attach end and 'orientation' is the direction it points outward — the response echoes each pin's computed body_end and tip. No text field may contain '|', the separator of Altium's record format; Altium's own editor stores it as '¦' (U+00A6).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| append | No | If true, append to existing file; if false, create new file | |
| symbols | Yes | Array of symbol definitions | |
| filepath | Yes | Path to the .SchLib file to create/modify |