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 does this mean?
>
> It means you cannot set the plot color in a Python script.
> (popt.SetColor(color) has no actual effect).
>
Yup, I thought so. ;-)

Martin

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


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, Martin


___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


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://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


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
> bindings. Can somebody help please?
>

Anybody? I want to make MSEkicadBOM 100% working. BTW, there is a first 
release:
https://forum.kicad.info/t/new-msekicadbom/5797

Martin

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


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(False)
>  popt.SetLineWidth(FromMM(0.35))
>
>  popt.SetAutoScale(False)
>  popt.SetScale(1)
>  popt.SetMirror(False)
>  popt.SetUseGerberAttributes(True)
>  popt.SetExcludeEdgeLayer(True);
>  popt.SetUseAuxOrigin(True)
>  popt.SetSubtractMaskFromSilk(False)
>
>  pctl.OpenPlotfile(lnames[0],PLOT_FORMAT_POST,'')
>  pctl.SetColorMode(False)
>  popt.SetColor(YELLOW)
>  pctl.SetLayer(F_SilkS)
>  pctl.PlotLayer()
>  pctl.ClosePlot()
> [...]
> "
> shows black,
> "
>  pctl.SetColorMode(True)
> "
> shows cyan.
> share/kicad/demos/python_scripts_examples/plot_board.py also makes black on
> white PDF's only.
>
> How can the colors been set by a RGB or other component color format?
>
> Version info:
> "
> Application: kicad
> Version: 4.0.5 release build
> wxWidgets: Version 3.0.2 (release,wchar_t,compiler with C++ ABI 1002,GCC
> 4.8.3,STL containers,compatible with 2.8)
> Platform: Linux 3.16.7-53-desktop i686, 32 bit, Little endian, wxGTK
> Boost version: 1.54.0
>  USE_WX_GRAPHICS_CONTEXT=OFF
>  USE_WX_OVERLAY=OFF
>  KICAD_SCRIPTING=ON
>  KICAD_SCRIPTING_MODULES=ON
>  KICAD_SCRIPTING_WXPYTHON=OFF
>  USE_FP_LIB_TABLE=HARD_CODED_ON
>  BUILD_GITHUB_PLUGIN=ON
> "
> compiled from 4.0 branch 575b22d018e83b81c66d169bb4afb2d0005dcb37.
>

Anybody? I want tom make MSEkicadBOM 100% working. BTW, there is a first 
release:
https://forum.kicad.info/t/new-msekicadbom/5797

Martin

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


[Kicad-developers] "wxWidgets Debug Alert" in pcbnew.py

2017-03-13 Thread Martin Schreiber

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
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)
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


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

2017-02-15 Thread Martin Schreiber
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 bindings.
Can somebody help please?

BTW, I still don't know how to set plot colors:
https://lists.launchpad.net/kicad-developers/msg27526.html

Thanks, Martin

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] [RFC] BOM Editor

2017-02-14 Thread Martin Schreiber
On Tuesday 14 February 2017 11:47:52 Clemens Koller wrote:
> Hello, Martin!
>
> Your work looks very promising.
> I am running very similar stuff "manually" (by executing .sql scripts)
> around my commercial tool.
>
> Is there an ODBC in between your frontend code and the Firebird database
> you use? I am asking because the data here sits in a MariaDB storage.
>
No, MSEkicadBOM uses the Firebird 3 connection component of MSEgui. MSEgui 
currently also has DB connectors for SQlite3, ODBC, Postgres and MySQL so 
porting to MariaDB should be possible.

Martin

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] [RFC] BOM Editor

2017-02-13 Thread Martin Schreiber
On Tuesday 14 February 2017 07:20:23 Oliver Walters wrote:
> Hi all,
>
> I have been working on a BOM exporter built into KiCad (in addition to the
> external BOM script functionality that already exists).
>
> It's not ready yet to be merged but I am showing the progress here to get
> any input and in case anyone else is working on a similar feature.
>
I am working on a standalone tool which extracts component field values from 
schematics 
and looks-up the component, footprints and BOM-values in a database:
http://mseide-msegui.sourceforge.net/pics/msekicadbom.png
Component fields can be composed by macros:
http://mseide-msegui.sourceforge.net/pics/component.png
and be based on a component-kind-template:
http://mseide-msegui.sourceforge.net/pics/componentkind.png

MSEkicadBOM can be used to produce the various production and documentation 
files:
http://mseide-msegui.sourceforge.net/pics/production.png
http://mseide-msegui.sourceforge.net/pics/docuset.png

The code is here:
https://gitlab.com/mseide-msegui/mseuniverse/tree/master/tools/kicad/bom

Martin

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] for comment: legacy canvas in V5 release

2017-02-08 Thread Martin Schreiber
On Wednesday 08 February 2017 13:32:14 Chris Pavlina wrote:
> On Wed, Feb 08, 2017 at 01:28:16PM +0100, Martin Schreiber wrote:
> > On Wednesday 08 February 2017 13:18:39 Chris Pavlina wrote:
> > > As a Linux user for many years now, that has not been my experience.
> >
> > You are a happy guy!
> > I am the author of MSEide+MSEgui where users expect that it perfectly
> > runs on every Windows, Linux and OpenBSD version on any hardware with
> > every possible window manager in the universe, I know what I am talking
> > about. :-)
>
> I don't think you do, because you're using your experience developing an
> IDE to claim that CAD software shouldn't need OpenGL. That is a very
> basic requirement for anything of a graphical nature.
>
Not for 2D. OpenGL is not well suited for 2D graphical applications. I made an 
OpenGL backend for MSEgui and have some experience.

But you probably misunderstood. I only wanted to say that in the tests I did 
with KiCad on different Linux boxes I had to select the legacy canvas to be 
able to work with acceptable performance for zooming and redrawing. I switch 
to OpenGL when I need the advanced functionality and back to legacy when the 
snappier performance is more important. The 23 years old Orcad on the K6 
Windows95 box is even snappier BTW.
I thought that I should report the experience of a first time KiCad Linux user 
because comments were requested. I am sorry if I offended you.

Martin

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] for comment: legacy canvas in V5 release

2017-02-08 Thread Martin Schreiber
On Wednesday 08 February 2017 13:18:39 Chris Pavlina wrote:
> As a Linux user for many years now, that has not been my experience.

You are a happy guy!
I am the author of MSEide+MSEgui where users expect that it perfectly runs on 
every Windows, Linux and OpenBSD version on any hardware with every possible 
window manager in the universe, I know what I am talking about. :-)

Martin

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] for comment: legacy canvas in V5 release

2017-02-08 Thread Martin Schreiber
On Wednesday 08 February 2017 12:27:26 Chris Pavlina wrote:
> Since the recent updates to it, I have found the Cairo backend to be on
> par with legacy. Have you tried using Cairo in a nightly build?
>
Not yet.

Martin

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] for comment: legacy canvas in V5 release

2017-02-08 Thread Martin Schreiber
On Wednesday 08 February 2017 12:35:40 Chris Pavlina wrote:
>
> Seriously, every $50 used laptop on Craigslist has OpenGL support.
>
Which normally doesn't work good enough on Linux out of the box.

Martin

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] for comment: legacy canvas in V5 release

2017-02-08 Thread Martin Schreiber
On Wednesday 08 February 2017 10:25:03 Mário Luzeiro wrote:
>
> I never investigate, maybe a miss some flags activation on my drivers
> but I experienced to use an old GPU (NVidia) card and everything goes back
> perfect!
>
Yup, sadly it is a matter-of-fact that OpenGL seldom works out of the box on 
Linux. One normally spends days to try or compile several different drivers 
and settings until it is somewhat working with all installed software, 
sometimes it is not possible to achieve.
And after the next kernel or X.Org update it is broken again...

Martin

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] for comment: legacy canvas in V5 release

2017-02-08 Thread Martin Schreiber
On Tuesday 07 February 2017 23:52:59 Cirilo Bernardo wrote:
>
> I think ripping out Legacy soon after release would be a good
> thing and will allow (some of us) to concentrate on improved
> modularity (and maintainability) of the code. Encouraging
> people to use GAL in V5 (while also discouraging them from
> using Legacy) should hopefully get us the bug reports we need
> to implement and polish up the GAL tools.
>
> Any comments?

I am relatively new to KiCad and I don't use it in production up to now 
because I need to finish the interface to my other production environment 
first, first of all I need to finish MSEkicadBOM.
Before I decided to invest time into the KiCad project I tested it on 
different Linux boxes. The only canvas which really worked was the legacy 
canvas. The OpenGL canvas either had issues or did not work at all because of 
various Linux driver problems. The performance of the legacy canvas was much 
better than the performance of the OpenGL canvas on the machines I tested. 
performance of Cairo canvas is even worse, almost unusable.
Admitted, I don't have the newest hardware but I like to have not so fast 
machines in order to be forced to develop fast software. ;-)

I recently had to revive a very old Orcad PCB-386 project on a stone age PC 
with K6 processor and Windows 95 - what surprise, the performance and user 
experience was on a par or even better than with current software on current 
machines.

So please take into account that not all users have the newest machines, even 
more users of free software who sometimes have a very low budget.

Martin

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


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

2017-02-02 Thread Martin Schreiber
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(False)
 popt.SetLineWidth(FromMM(0.35))

 popt.SetAutoScale(False)
 popt.SetScale(1)
 popt.SetMirror(False)
 popt.SetUseGerberAttributes(True)
 popt.SetExcludeEdgeLayer(True);
 popt.SetUseAuxOrigin(True)
 popt.SetSubtractMaskFromSilk(False)

 pctl.OpenPlotfile(lnames[0],PLOT_FORMAT_POST,'')
 pctl.SetColorMode(False)
 popt.SetColor(YELLOW)
 pctl.SetLayer(F_SilkS)
 pctl.PlotLayer()
 pctl.ClosePlot()
[...]
"
shows black,
"
 pctl.SetColorMode(True)
"
shows cyan.
share/kicad/demos/python_scripts_examples/plot_board.py also makes black on 
white PDF's only.

How can the colors been set by a RGB or other component color format?

Version info:
"
Application: kicad
Version: 4.0.5 release build
wxWidgets: Version 3.0.2 (release,wchar_t,compiler with C++ ABI 1002,GCC 
4.8.3,STL containers,compatible with 2.8)
Platform: Linux 3.16.7-53-desktop i686, 32 bit, Little endian, wxGTK
Boost version: 1.54.0
 USE_WX_GRAPHICS_CONTEXT=OFF
 USE_WX_OVERLAY=OFF
 KICAD_SCRIPTING=ON
 KICAD_SCRIPTING_MODULES=ON
 KICAD_SCRIPTING_WXPYTHON=OFF
 USE_FP_LIB_TABLE=HARD_CODED_ON
 BUILD_GITHUB_PLUGIN=ON
"
compiled from 4.0 branch 575b22d018e83b81c66d169bb4afb2d0005dcb37.

Thanks, Martin

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] [RFC] Application naming

2017-02-02 Thread Martin Schreiber
On Thursday 02 February 2017 16:28:27 Clemens Koller wrote:
>
> BTW: Assignment of a footprints seems to me completely odd at this level.
>
I do not agree. Assume a through-hole resistor which can be mounted 
horizontally, vertically, on a single-sided board, on a double-sided board, 
or a SMD-resistor which needs different footprints depending on soldering 
technology and so on.
I really like the KiCad principle of loosely coupled schematic library part 
and footprint, much more flexible than the way other EDA-tools handle the 
task.
MSEkicadBOM looks up the component and footprint in a database based on 
value-fields in the schematic and defined footprint selection parameters and 
produces a *.cmp file which can be backported into the schematic.
It would be very bad news if it is not possible anymore.

Martin

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Python LAYER_PAIR parameter for EXCELLON_WRITER().BuildHolesList()

2017-01-15 Thread Martin Schreiber
On Sunday 15 January 2017 12:10:20 jp charras wrote:
>
> My question was more why do you want to use an helper internal method
> (which needs the initialization of many parameters, made by a top level
> method), rather than the method which generates the drill files as used in
> the demo gen_gerber_and_drill_files_board.py.
>
I learned that to use lowlevel access it is more work maybe but it often 
allows to made better products. :-)
For the documentation stack generator MSEkicadBOM allows to set filename, 
scale, orientation, mirroring... of the individual items. There I use 
PLOT_CONTROLLER and rename/move/delete the produced files.
For the drill files I saw CreateDrillFile() and thought that it is a handy 
function to generate individual files directly.
Maybe it should be documented which pcbnew.py functions are "official" and can 
be used?

> They are also subject to change: for instance LAYER_PAIR does not exist 
> now, due to a collision between 2 structs having the same name defined in
> Kicad code.

True, I can live with that if there is a possibility to savely distinguish 
different API's by version query.

> And this layer pair parameter for EXCELLON_WRITER().BuildHolesList() is not
> so easy to calculate for boards with blind/buried vias.
>
Agreed.

> pcbnew.py is automatically generated by Swig from C++ kicad sources.
> It means many methods in pcbnew.py are not necessary easy to use or not
> necessary useful.
>
> Besides, if you want to work on a tool which needs mainly a list of
> schematic components and their fields, I encourage you to use the netlist
> (.net or .xml files) as entry point, not the schematic files.
>
> Parsing the schematic files is usually tricky, and is justified only to
> access info not in netlist. Especially for complex hierarchies.

The file format of Eeschema is easy to parse, I like it. Using it directly has 
the advantage that users are not responsible to first create an intermediate 
file before using MSEkicadBOM.

> And of course, the code will be outdated when the schematic file format is
> changed.
>
Again, I can live with that if the different formats can be savely 
distinguished.

Martin

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Python LAYER_PAIR parameter for EXCELLON_WRITER().BuildHolesList()

2017-01-12 Thread Martin Schreiber
On Thursday 12 January 2017 12:37:37 jp charras wrote:
>
> It could be worth to explain us what exactly are you trying to do.

MSEkicadBOM is a tool in order to combine KiCad with a component database and 
to automate document and production file generation. MSEkicadBOM scans the 
KiCad schematic files and matches the found components with the Firebird 
component database and looks up the associated footprint in the database, see
http://mseide-msegui.sourceforge.net/pics/msekicadbom.png
http://mseide-msegui.sourceforge.net/pics/kicad_component.png

'Reporting'-'Component-Footprintlist' creates a *.cmp list which can be 
imported into schematic.

Document and production file generation uses infos defined in setup dialogs 
which can use macros, the data is stored in project files and project 
templates. See for example
http://mseide-msegui.sourceforge.net/pics/kicad_globalsettings.png
http://mseide-msegui.sourceforge.net/pics/kicad_globalsettings1.png
http://mseide-msegui.sourceforge.net/pics/kicad_projectsettings.png

All is under construction!

> FILE is a basic C struct.
> These methods are helper methods to create files, but are called by a
> higher lever method.
>
That means that not all functions in pcbnew.py can be used because of missing 
proxy classes?

> If you are trying to create a EXCELLON drill file (exactly a set of files),
> have a look into the demo: gen_gerber_and_drill_files_board.py

Maybe it is possible to abuse the higher level functions in order to produce 
the needed low level results, I prefer to use low level functions directly. 
At the end it means less hassle.
It seems it already has been talked about:
https://lists.launchpad.net/kicad-developers/msg10233.html

Thanks, Martin

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Python LAYER_PAIR parameter for EXCELLON_WRITER().BuildHolesList()

2017-01-12 Thread Martin Schreiber
On Wednesday 11 January 2017 08:52:37 Martin Schreiber wrote:
>
> How must the LAYER_PAIR type parameter be defined in Python?
>
Similar problem with 
"CreateDrillFile(EXCELLON_WRITER self, FILE * aFile) -> int".
How to define "FILE * aFile"?
"
[...]
  f1 = file(aoutputfile,'w')
  drlwriter.CreateDrillFile(f1)
  f1.close()
[...]
"
returns:
"
Traceback (most recent call last):
  File "", line 4, in 
  File "drillfile.py", line 33, in drillfile
drlwriter.CreateDrillFile(f1)
  File "/usr/lib/python2.7/site-packages/pcbnew.py", line 10059, in 
CreateDrillFile
return _pcbnew.EXCELLON_WRITER_CreateDrillFile(self, *args)
TypeError: in method 'EXCELLON_WRITER_CreateDrillFile', argument 2 of 
type 'FILE *'
".

Martin

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Python LAYER_PAIR parameter for EXCELLON_WRITER().BuildHolesList()

2017-01-11 Thread Martin Schreiber
On Wednesday 11 January 2017 08:52:37 Martin Schreiber wrote:

[...]
>
> MSEkicadBOM uses pcbnew.py as interface to pcbnew. In pcbnew.py there is
> a "BuildHolesList()" function with the signature "EXCELLON_WRITER self,
> LAYER_PAIR aLayerPair, bool aGenerateNPTH_list".
>
> How must the LAYER_PAIR type parameter be defined in Python?
>
Maybe a proxy class is missing in pcbnew.py? Should I make a bug report?

Martin

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


[Kicad-developers] Python LAYER_PAIR parameter for EXCELLON_WRITER().BuildHolesList()

2017-01-11 Thread Martin Schreiber
Hi,
I am developing a component database and documentation/production files 
generator tool for KiCad with MSEide+MSEgui:
https://sourceforge.net/projects/mseide-msegui/

The code is here:
https://gitlab.com/mseide-msegui/mseuniverse/tree/master/tools/kicad/bom

MSEkicadBOM uses pcbnew.py as interface to pcbnew. In pcbnew.py there is 
a "BuildHolesList()" function with the signature "EXCELLON_WRITER self, 
LAYER_PAIR aLayerPair, bool aGenerateNPTH_list".

How must the LAYER_PAIR type parameter be defined in Python?

Thanks, Martin

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp