如何根据 KLC(KiCAD 库约定)检查 KiCAD 封装
首先,使用以下命令克隆kicad-library-utils
git clone https://gitlab.com/kicad/libraries/kicad-library-utils.git
klc_check_footprint.txt
git clone https://gitlab.com/kicad/libraries/kicad-library-utils.git然后,使用以下命令对你的封装运行检查脚本 - 本例中为 Connector_RJ.pretty/RJ9_Evercom_5301-4P4C.kicad_mod
run_klc_check.sh
~/kicad-library-utils/klc-check/check_footprint.py -vv Connector_RJ.pretty/RJ9_Evercom_5301-4P4C.kicad_mod你可能需要相应地调整 kicad-library-utils 的路径。
这将在命令行上提供彩色输出,如
klc_check_output.txt
Checking footprint 'RJ9_Evercom_5301-4P4C':
Violating F5.2 - https://klc.kicad.org/footprint/f5/f5.2/
Fabrication layer requirements
Value Label Errors
Violating F7.2 - https://klc.kicad.org/footprint/f7/f7.2/
For through-hole components, footprint anchor is set on pad 1
Pad '1' not located at origin
Violating F9.1 - https://klc.kicad.org/footprint/f9/f9.1/
Footprint meta-data is filled in as appropriate
Value label '5301-4P4C' does not match filename 'RJ9_Evercom_5301-4P4C'
Violating F9.3 - https://klc.kicad.org/footprint/f9/f9.3/
Footprint 3D model requirements
3D model file path missing from the 3D model settings of the footprintCheck 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