← Back to team overview

kicad-developers team mailing list archive

Re: Kicad scripting progress :-)

 

On 05/01/2012 10:02 AM, Miguel Angel Ajo Pelayo wrote:
> We can read and write libraries now with the latest extensions to PLUGIN that Dick &
> Wayne did :)
> now it always use legacy, but they will work with all formats. :-)
>
> from pcbnew import *
> lst = FootprintEnumerate("/usr/share/kicad/modules/sockets.mod")
> for name in lst:
> m = FootprintLoad("/usr/share/kicad/modules/sockets.mod",name)
> print name,"->",m.GetLibRef(), m.GetReference()
> for p in m.GetPads():
> print "\t",p.GetPadName(),p.GetPosition(), p.GetOffset()


Only 7 lines of code which show how powerful the scripting support is becoming.

Thank you very much Miguel.  I look forward to playing with it, some day when I have more
time.



Dick




Follow ups

References