lib_batch_set_params
Batch update or create component parameters in an EasyEDA library, including Description and default Designator properties, from a list of assignments.
Instructions
Batch set parameters on library components.
Each assignment sets one parameter on one component. If the parameter exists it is updated; if not it is created.
Two param_name values are SPECIAL-CASED to component
properties rather than parameters:
"Description"setsComponent.ComponentDescription."Designator"sets the component's DEFAULT designator (Component.Designator.Text, e.g."U?"/"R?"). Use this to normalize library designator defaults in bulk (pairs withlib_get_components(with_designator=True)).
Args: assignments: List of dicts with keys: - component_name: Name of the component in the library - param_name: Parameter name (e.g., "Partnumber", "Manufacturer"), or the special "Description" / "Designator" property keys - param_value: Value to set library_path: Path to library (uses active library if not specified)
Returns: Dictionary with counts of updated, created, and failed assignments
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assignments | Yes | ||
| library_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||