Preview a symbol
render_symbolPreview an Altium symbol from a .SchLib file as ASCII art, showing every pin, shape, and text element with per-kind counts. Use it to visually check a layout after authoring or editing.
Instructions
Render an ASCII-art preview of one symbol in a .SchLib — a quick visual check of a layout after authoring or editing, not a drawing to keep. Every record kind of the requested part — pins (with designators), rectangles, rounded rectangles, lines, polylines, polygons, arcs, pies, ellipses, elliptical arcs, beziers, images, text frames, labels and IEEE symbols — gets its own marker, followed by a per-kind count line and a legend. part_id picks one part of a multi-part symbol (default 1; 0 draws all parts); scale sets characters per 10 schematic units and the picture is limited to max_width x max_height characters. Coordinates are schematic units (10 units = 1 grid). Use get_component or read_schlib for exact coordinates and properties, and render_footprint for a .PcbLib footprint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Characters per 10 schematic units (default: 1.0). Higher = more detail | |
| part_id | No | Part ID for multi-part symbols (default: 1, shows all parts if 0) | |
| filepath | Yes | Path to the Altium SchLib file | |
| max_width | No | Maximum width in characters (default: 80) | |
| max_height | No | Maximum height in characters (default: 40) | |
| component_name | Yes | Name of the symbol to render |