kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #08069
Re: Kicad scripting progress :-)
-
To:
kicad-developers@xxxxxxxxxxxxxxxxxxx
-
From:
Dick Hollenbeck <dick@xxxxxxxxxxx>
-
Date:
Tue, 01 May 2012 10:08:08 -0500
-
In-reply-to:
<CA+CzoSbFUPTK_mrVH=XoCfMYVOJwvKfiA3FZkEcG_wFK6pmiOA@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120412 Thunderbird/11.0.1
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
-
Kicad scripting progress :-)
From: Miguel Angel Ajo Pelayo, 2012-03-18
-
Re: Kicad scripting progress :-)
From: Dick Hollenbeck, 2012-03-18
-
Re: Kicad scripting progress :-)
From: Wolfgang Spraul, 2012-03-18
-
Re: Kicad scripting progress :-)
From: Wayne Stambaugh, 2012-03-19
-
Re: Kicad scripting progress :-)
From: Miguel Angel Ajo Pelayo, 2012-04-07
-
Re: Kicad scripting progress :-)
From: Wayne Stambaugh, 2012-04-07
-
Re: Kicad scripting progress :-)
From: lajos kamocsay, 2012-04-09
-
Re: Kicad scripting progress :-)
From: Miguel Angel Ajo Pelayo, 2012-04-09
-
Re: Kicad scripting progress :-)
From: Miguel Angel Ajo Pelayo, 2012-04-14
-
Re: Kicad scripting progress :-)
From: Miguel Angel Ajo Pelayo, 2012-04-14
-
Re: Kicad scripting progress :-)
From: Miguel Angel Ajo Pelayo, 2012-05-01