CLI footprint export: include pad numbers as an option
Description
A primary use case for the CLI export footprint command (exporting footprints as SVG from a library) is to feed into some sort of footprint-checking or comparison workflow. For example, we would like to easily compare Kicad library footprint home orientation with the home orientation of footprints in a Pick-and-place machine library, in order to determine what rotation offset needs to be added to Kicad PnP file output.
That process would be aided if the SVG output would include pin numbers. Unfortunately, the current SVG output can only show/hide footprint layers, and pin numbers are not on a layer. (Instead, they appear in footprint and PCB editor as a separate feature of those editors.)
Steps to reproduce
- Run a command like:
- kicad-cli fp export svg --fp D_SOD-123 -o g:\TempKicad\scratch "C:\Program Files\KiCad\8.0\share\kicad\footprints\Diode_SMD.pretty"
- View the SVG file and note there are no pin numbers.
KiCad Version
Application: KiCad x64 on x64
Version: 8.0.2-124-g1264230973, release build
Libraries:
wxWidgets 3.2.4
FreeType 2.12.1
HarfBuzz 8.3.0
FontConfig 2.14.2
libcurl/8.5.0-DEV Schannel zlib/1.3
Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW
OpenGL: NVIDIA Corporation, NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2, 4.6.0 NVIDIA 536.23
Build Info:
Date: May 19 2024 05:22:18
wxWidgets: 3.2.4 (wchar_t,wx containers)
Boost: 1.83.0
OCC: 7.8.1
Curl: 8.5.0-DEV
ngspice: 42
Compiler: Visual C++ 1939 without C++ ABI
Build settings:
Edited by Graham Wideman