lib_fetch
Fetch symbol, footprint and 3D model files for an LCSC code into a KiCad library beside your project. Use them to draft a part swap, then verify pads against the datasheet.
Instructions
Symbol, footprint and 3D model (STEP and WRL) for one LCSC code, converted from EasyEDA's component data (EasyEDA is JLCPCB's own design tool; nearly every part in the assembly catalogue has a model there) by easyeda2kicad into a library next to the project. A part swap becomes: parts_search for the code and stock, lib_fetch for the files, then fp_info and the datasheet drawing (doc_page) for the pad-for-pad check. The models are drawn by users and JLCPCB staff: treat them as drafts, never as verified.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lcsc | Yes | LCSC code such as C520543, as parts_search or jlcpcb.com/parts give it. | |
| parts | No | full | |
| lib_dir | No | Folder for the library files instead of <project>/lib; must be inside the workspace. | |
| lib_name | No | Library base name: <lib_name>.kicad_sym, <lib_name>.pretty and <lib_name>.3dshapes; several parts share one library. | jlc |
| overwrite | No | Replace a symbol, footprint or model of the same name already in the library. | |
| project_path | No | The project (.kicad_pro or its folder) whose lib/ receives the files. Register <lib_name> in its sym-lib-table and fp-lib-table afterwards. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lcsc | Yes | ||
| pads | Yes | ||
| pins | Yes | ||
| files | Yes | ||
| source | Yes | ||
| symbol | Yes | ||
| library | Yes | ||
| warnings | Yes | ||
| footprint | Yes | ||
| model_wrl | Yes | ||
| symbol_id | Yes | ||
| model_step | Yes | ||
| library_dir | Yes | ||
| footprint_id | Yes |