Manage symbol parameters
manage_schlib_parametersList, get, set, add, or delete parameters on an Altium .SchLib symbol. Names match case-insensitively, and changes are backed up before saving.
Instructions
Manage the parameters of one symbol in a .SchLib (Value, Manufacturer, Part Number and the like): list them, get one, set an existing one, add a new one, or delete one. Names match without regard to case, as Altium treats them; set refuses a name the symbol lacks (use add) and add refuses one it already has (use set). Every change backs the library up to a timestamped .bak beside it (the five newest are kept) before saving, and the reply carries the parameter as stored; list returns every parameter with a count. Use get_component or read_schlib to see parameters together with the symbol's pins and graphics, update_component to rewrite a symbol wholesale, and manage_schlib_footprints for footprint links, which are models rather than parameters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X position in schematic units (optional for set, add) | |
| y | No | Y position in schematic units (optional for set, add) | |
| value | No | Parameter value (required for set, add) | |
| hidden | No | Whether the parameter is hidden (optional for set, add) | |
| filepath | Yes | Path to the Altium SchLib file | |
| operation | Yes | Operation to perform: list (all parameters), get (single parameter), set (update value), add (new parameter), delete (remove parameter) | |
| unique_id | No | 8-char Altium unique ID (optional for set, add). Default: auto-generated | |
| param_type | No | Parameter type (0=String, 1=Boolean, 2=Integer, 3=Float) (optional for set, add). Default: 0 | |
| component_name | Yes | Name of the symbol to manage parameters for | |
| parameter_name | No | Name of the parameter (required for get, set, add, delete); matched without regard to case, as Altium treats parameter names | |
| read_only_state | No | Read-only state (0=editable, 1=read-only) (optional for set, add). Default: 0 |