kicad-footprint-generator THT Pad issue

28 views
Skip to first unread message

Volker Lange

unread,
Apr 13, 2026, 9:16:31 AM (13 days ago) Apr 13
to KiCad Developers
Question from newbie...

Official kicad-footprint-generator has issue in creating a THT Pad including an offset not equal 0.
Example pad without problem:
kicad_mod.append(Pad(number=1, type=Pad.TYPE_THT, shape=Pad.SHAPE_RECT, at=[0,0], size=[2,2], drill=1.2, layers=['*.Cu', '*.Mask']))

Example pad with problem:
kicad_mod.append(Pad(number=1, type=Pad.TYPE_THT, shape=Pad.SHAPE_RECT, at=[0,0], size=[2,2], drill=1.2, offset=[0.8, 0], layers=['*.Cu', '*.Mask']))

The generator write a wrong syntax for the offset to the resulting *.kicad_mod file.
The resulting library can not be added to a project due to the wrong footprint inside the library.
Maybe someone already using the kicad-footprint-generator and can confirm this bug by simply pasting above line into a footprint.py as your choice?

I identified the reason in KicadModTree and adjusted the code. Problem was gone.
But I'm not sure if should create a gitlab account to report the error and the modification? I have no experience to create a MR...

Thank you.
footprintlibERR.jpg
Reply all
Reply to author
Forward
0 new messages