← Back to team overview

kicad-developers team mailing list archive

"wxWidgets Debug Alert" in pcbnew.py

 

Hi,
kicad-4.0.6-x86_64.exe, installed on Windows 7, shows the attached error message with the attached script. Is it a KiCad bug? If yes, is there a workaround?

Thanks, Martin

Attachment: plotlayer.PNG
Description: PNG image

from pcbnew import *

def plotitem(apcbfilename,aoutputdir,aformat,alayer): 
 board = LoadBoard(apcbfilename)
 pctl = PLOT_CONTROLLER(board)
 popt = pctl.GetPlotOptions()
 popt.SetOutputDirectory(aoutputdir)
 pctl.OpenPlotfile('abc',aformat,'')
 pctl.SetLayer(alayer)
 pctl.PlotLayer()
 pctl.ClosePlot()
 
plotitem('C:\\Program Files\\KiCad\\share\\kicad\\demos\\complex_hierarchy\\complex_hierarchy.kicad_pcb',
 'D:\\mse\\proj\\test\\plot',PLOT_FORMAT_POST,F_Cu)

Follow ups