[Feature Request] Expose file handling (save, close, revert) to the Python API
Description
Plugins would benefit from being able to reload PCB files from source, or being able to save them elsewhere. Exposing the File->Revert or File->Save or similar methods would be nice.
Steps to reproduce
Something like pcbnew.Revert()
or pcbnew.GetBoard().Revert()
would make sense.
KiCad Version
Application: KiCad x64 on x64
Version: 7.0.2, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.12.1
HarfBuzz 6.0.0
FontConfig 2.14.1
libcurl/7.88.1-DEV Schannel zlib/1.2.13
Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Apr 15 2023 19:18:27
wxWidgets: 3.2.2 (wchar_t,wx containers)
Boost: 1.81.0
OCC: 7.6.3
Curl: 7.88.1-DEV
ngspice: 40
Compiler: Visual C++ 1934 without C++ ABI
Build settings:
KICAD_SPICE=ON
Edited by Jarrett Rainier