← Back to team overview

kicad-lib-committers team mailing list archive

Tool checking/fixing some KLC rules

 

I'd like to announce that I'm writing some code to help checking/fixing some KLC footprints.

https://github.com/michal777/KiCad_Lib_Check/blob/master/lib_check.c


The program takes .kicad_mod files from given location and checks some of rules line by line. If there are no tests for some kind of line or the line is OK then it's copied to temporary file. If there is some problem, eg. wrong line width for courtyard, program suggests fixing it and in this case changes the line width (copies modified line). If user accepts changes, the temporary file is copied to original file.
It's easy to use and can ease finding and fixing some common problems.
At the moment it can fix: name, reference, value, font size, courtyard line width, silkscreen line width, unnecessary lines (rotation allowance, clearance specified at footprint level), path to 3D model (if exists but with wrong name). More tests can be added.


Michał Stec


Follow ups