Python: Missing API for setting board aux origin
Description
This is a regression from V5. I have scripts that set the auxiliary origin (for panelization/manufacturing) using the python API. They run on v5 but will not work on v6. This feature is also used by kikit to produce .pos files with reference to the panel origin.
Steps to reproduce
Run the following example code in the shell:
from pcbnew import GetBoard, wxPointMM
b = GetBoard()
b.SetAuxOrigin(wxPointMM(100,100))
b.Save("test.kicad_pcb")
On v5 it will save a pcb with the origin correctly at 100,100. On v6 it will error out with:
>>> b.SetAuxOrigin(wxPointMM(100,100))
Traceback (most recent call last):
File "<input>", line 1, in <module>
AttributeError: 'BOARD' object has no attribute 'SetAuxOrigin'
I have been unable to find an equivalent function call on the current v6 API
KiCad Version
Application: KiCad PCB Editor
Version: (5.99.0-11438-gbcd6bddfd4), release build
Libraries:
wxWidgets 3.0.5
libcurl/7.77.0 OpenSSL/1.1.1k zlib/1.2.11 zstd/1.5.0 libidn2/2.3.1 libpsl/0.21.1 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.43.0
Platform: Linux 5.12.15-arch1-1 x86_64, 64 bit, Little endian, wxGTK, gnome, x11
Build Info:
Date: Jul 16 2021 15:31:38
wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.76.0
OCC: 7.5.0
Curl: 7.77.0
ngspice: 34
Compiler: GCC 11.1.0 with C++ ABI 1016
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON