SetPlotFrameRef has no effect when plotting from Python
Description
It does not appear to be possible to plot the worksheet (frame) of a board from Python
Steps to reproduce
Attempt to plot a PCB using the below or equivalent script
from pcbnew import *
b = GetBoard()
pc = PLOT_CONTROLLER(b)
po = pc.GetPlotOptions()
po.SetBlackAndWhite(False)
po.SetColorSettings(GetSettingsManager().GetColorSettings())
po.SetFormat(PLOT_FORMAT_PDF)
po.SetPlotFrameRef(True)
po.SetOutputDirectory("/tmp/test")
pc.OpenPlotfile("", PLOT_FORMAT_PDF, "")
pc.SetLayer(Dwgs_User)
pc.PlotLayer()
pc.ClosePlot()
You will get out a plot, but without the worksheet (frame) border.
KiCad Version
Application: KiCad PCB Editor
Version: (6.0.8-1)-1, release build
Libraries:
wxWidgets 3.1.5
libcurl/7.79.1 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.11 nghttp2/1.45.1
Platform: macOS Version 12.5.1 (Build 21G83), 64 bit, Little endian, wxMac
Build Info:
Date: Sep 28 2022 15:09:52
wxWidgets: 3.1.5 (wchar_t,wx containers)
Boost: 1.79.0
OCC: 7.6.3
Curl: 7.64.1
ngspice: 37
Compiler: Clang 12.0.0 with C++ ABI 1002
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON
Edited by Jon Evans