[Feature request] pcbnew: Plugin API with trigger support
Description
I have another new idea that would make working with Kicad easier. I have 2 plugins that always have to run before or after the Gerber export. One creates a boardinfo.txt
for the pcb manufacturer and the other creates an assembly plan in which all DNP components are crossed out. If you extended the plugin API so that there could be optional methods in the plugin, such as trigger_before_plot()
, trigger_after_plot()
, trigger_on_open()
, trigger_on_close()
or trigger_on_print()
, then the plugins would be started automatically and you can Don't forget to do them.
KiCad Version
Application: KiCad Calculator Tools x86_64 on x86_64
Version: 7.99.0-4087-g7a2e7b6270-dirty, debug build
Libraries:
wxWidgets 3.2.4
FreeType 2.13.0
HarfBuzz 7.1.0
FontConfig 2.14.2
libcurl/8.0.1 OpenSSL/3.0.9 zlib/1.2.13 libidn2/2.3.4 nghttp2/1.52.0Platform: Fedora Linux 38 (Workstation Edition), 64 bit, Little endian, wxGTK, X11, gnome, wayland
Build Info:
Date: Dec 27 2023 16:24:19
wxWidgets: 3.2.4 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.78.0
OCC: 7.6.3
Curl: 8.0.1
ngspice: 41
Compiler: GCC 13.2.1 with C++ ABI 1018
Build settings:
KICAD_STDLIB_DEBUG=OFF
KICAD_STDLIB_LIGHT_DEBUG=OFF
KICAD_SANITIZE_ADDRESS=OFF
KICAD_SANITIZE_THREADS=OFF