Re: [Kicad-developers] FP_LIB_TABLE::FootprintLoad assert on windows; encoding issue

2017-03-18 Thread Chris Pavlina
Oops. I lost a LOCALE_IO during a refactor. Never mind this. On Sat, Mar 18, 2017 at 04:05:28PM -0400, Chris Pavlina wrote: > Hi, > > When running a debug build on Windows, I get an assertion failure here: > > common/fp_lib_table.cpp:250 > FP_LIB_TABLE::FootprintLoad > wxASSERT( aFootpri

Re: [Kicad-developers] Fixing libcommon

2017-03-18 Thread Reece R. Pollack
On 03/18/17 10:18, Maciej Suminski wrote: In order to remove the hardcoded values from WORKSHEET_VIEWITEM, I started moving code that used to be compiled multiple times to separate units. This is also a basic way to solve the internal units conversion problem. There are still a few more files th

Re: [Kicad-developers] pcbnew.py: How to set plot color?

2017-03-18 Thread Jon Evans
JP, is this desired behavior? (I.e. should plot functions draw in layer color, or draw in plotter color?) I need to fix the plot functions depending on global function GetLayerColor() in eeschema, and so since I'll have to modify schematic plotting functions anyway, I could change the behavior at

[Kicad-developers] FP_LIB_TABLE::FootprintLoad assert on windows; encoding issue

2017-03-18 Thread Chris Pavlina
Hi, When running a debug build on Windows, I get an assertion failure here: common/fp_lib_table.cpp:250 FP_LIB_TABLE::FootprintLoad wxASSERT( aFootprintName == (wxString) fpid.GetLibItemName() ); This is clearly related to the character encoding of the footprint name. The footprint in qu

Re: [Kicad-developers] pcbnew.py: How to set plot color?

2017-03-18 Thread Martin Schreiber
On Saturday 18 March 2017 19:45:41 jp charras wrote: > Le 18/03/2017 à 19:30, Martin Schreiber a écrit : > > On Saturday 18 March 2017 17:35:53 jp charras wrote: > >> Currently, plot functions overwrite the initial setting made by > >> popt.SetColor(color). > > > > Sorry, I don't understand. What d

Re: [Kicad-developers] pcbnew.py: How to set plot color?

2017-03-18 Thread jp charras
Le 18/03/2017 à 19:30, Martin Schreiber a écrit : > On Saturday 18 March 2017 17:35:53 jp charras wrote: > >> >> Currently, plot functions overwrite the initial setting made by >> popt.SetColor(color). > > Sorry, I don't understand. What does this mean? It means you cannot set the plot color in

Re: [Kicad-developers] How to create module position files with pcbnew.py?

2017-03-18 Thread Martin Schreiber
On Saturday 18 March 2017 17:41:01 jp charras wrote: > > Currently, you cannot. > > There is no normalized format for position files. > You can generate a position file with any format you want with a few lines > of Python code. Which functions in pcbnew.py can be used for the purpose? Thanks, Ma

Re: [Kicad-developers] pcbnew.py: How to set plot color?

2017-03-18 Thread Martin Schreiber
On Saturday 18 March 2017 17:35:53 jp charras wrote: > > Currently, plot functions overwrite the initial setting made by > popt.SetColor(color). Sorry, I don't understand. What does this mean? Thank you very much, Martin ___ Mailing list: https://lau

Re: [Kicad-developers] How to create module position files with pcbnew.py?

2017-03-18 Thread jp charras
Le 18/03/2017 à 16:02, Martin Schreiber a écrit : > On Thursday 16 February 2017 08:43:35 Martin Schreiber wrote: >> Hi, >> I could not find out how to create module position files with pcbnew.py. It >> looks like that it is done by DIALOG_GEN_MODULE_POSITION.CreateFiles() >> which calls DoGenFootp

Re: [Kicad-developers] pcbnew.py: How to set plot color?

2017-03-18 Thread jp charras
Le 18/03/2017 à 15:59, Martin Schreiber a écrit : > On Friday 03 February 2017 08:25:12 Martin Schreiber wrote: >> Hi, >> How can the plot color been set while using pcbnew.py? >> " >> [...] >> board = LoadBoard(apcbfilename) >> pctl = PLOT_CONTROLLER(board) >> popt = pctl.GetPlotOptions() >> p

Re: [Kicad-developers] EDA_ITEM::Show()

2017-03-18 Thread Wayne Stambaugh
Simon, I don't use this very often but occasionally it's useful to be able to dump the object state for debugging purposes. It's similar to the bounding box drawing code. I don't want to get rid of it because you never know when you're going to need it. Cheers, Wayne On 3/17/2017 3:39 PM, Sim

Re: [Kicad-developers] pretty folder content updating only with KiCad reboot

2017-03-18 Thread Wayne Stambaugh
Fabrizio, On 3/17/2017 9:43 AM, Fabrizio Tappero wrote: > Hi Guys, > I apologize if this is something has been discussed already but I could > not find any info about it. > > In my normal workflow, I created lib components and footprints while I > work on the schematic and I do not seem to unders

Re: [Kicad-developers] How to create module position files with pcbnew.py?

2017-03-18 Thread Martin Schreiber
On Thursday 16 February 2017 08:43:35 Martin Schreiber wrote: > Hi, > I could not find out how to create module position files with pcbnew.py. It > looks like that it is done by DIALOG_GEN_MODULE_POSITION.CreateFiles() > which calls DoGenFootprintsPositionFile(). I can't find it in Python > binding

Re: [Kicad-developers] pcbnew.py: How to set plot color?

2017-03-18 Thread Martin Schreiber
On Friday 03 February 2017 08:25:12 Martin Schreiber wrote: > Hi, > How can the plot color been set while using pcbnew.py? > " > [...] > board = LoadBoard(apcbfilename) > pctl = PLOT_CONTROLLER(board) > popt = pctl.GetPlotOptions() > popt.SetOutputDirectory(aoutputdir) > popt.SetPlotFrameRef(F

[Kicad-developers] Fixing libcommon

2017-03-18 Thread Maciej Suminski
In order to remove the hardcoded values from WORKSHEET_VIEWITEM, I started moving code that used to be compiled multiple times to separate units. This is also a basic way to solve the internal units conversion problem. There are still a few more files that are compiled multiple times. I plan to fi