Re: [Kicad-developers] tiny Patch: fix board.Save() breakage in Python scripting

2017-11-18 Thread Wayne Stambaugh
Henner, I went ahead and applied your patch as is. Since non of the board plugins other than the kicad sexpr format have a save method, your fix should work just fine. Thank you for your contribution to kicad. Cheers, Wayne On 11/16/2017 12:07 PM, Henner Zeller wrote: > Hi, > While playing ar

Re: [Kicad-developers] tiny Patch: fix board.Save() breakage in Python scripting

2017-11-17 Thread Wayne Stambaugh
A better option might be to expose the PCB_FILE_T enum so that they can be used directly by the python scripting. The other option is to use pcbnew.IO_MGR_EnumFromStr( "Legacy" ) to fetch the enum. Of course if there is no reason to ever save a board file in any other format than the kicad sexpr

[Kicad-developers] tiny Patch: fix board.Save() breakage in Python scripting

2017-11-16 Thread Henner Zeller
Hi, While playing around with the Python API, I noticed that saving a board didn't work. Apparently there was a parameter IO_MGR.KICAD passed internally that the interpreter didn't know about. The attached patch fixes it, but I have no idea if this is the 'correct' way to do it. Cheers, Henner