How to check KiCAD symbol library against KLC (KiCAD library conventions)
First, clonekicad-library-utils using
klc_check_instructions.txt
git clone https://gitlab.com/kicad/libraries/kicad-library-utils.gitThen, run the check script against your library using
run_klc_check.sh
~/kicad-library-utils/klc-check/check_symbol.py MyLibrary.kicad_sym -vvYou might need to adjust the path to kicad-library-utils accordingly.
This will provide colored output on the command line such as
example.txt
Checking symbol 'Analog_Switch:FSA3157L6X':
Checking symbol 'Analog_Switch:NC7SB3157P6X':
Violating S3.1
Origin is centered on the middle of the symbol
Symbol unit 1 not centered on origin
- Center calculated @ (0, -112)
Violating S3.6
Pin name position offset
Pin offset outside allowed range
- Pin offset (5) should not be below 20milsCheck out similar posts by category:
Electronics, KiCAD
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow