← Back to team overview

kicad-developers team mailing list archive

Re: example of how to use the scripting

 

Hi Dick :-)

2012/7/30 Dick Hollenbeck <dick@xxxxxxxxxxx>

> Miguel and Others,
>
> The "Spiral" EMP generator here is something that is best done as an
> internal Python
> script within Pcbnew IMO.
>
>
> http://tech.groups.yahoo.com/group/kicad-users/files/Pcbnew%20file%20utilities/



I'm trying to get access to it, but yahoo won't recognize me, I'm
re-registering, so I tell you later.


>
>
> This would give someone the ability to rapidly tweak the functionality
> without rebuilding
> KiCad.
>
> This is a typical application of scripting, and would make a good sample
> script if
> somebody has the time to make this happen.
>


I suppose it's something that receives a set of parameters and generates a
module/footprint or circuit?


>
> I am not certain that Pcbnew can yet invoke a script, it may be that we
> are still using
> topmost script with the DLL/DSO underneath.  But we need to get there
> eventually in any
> case.
>

Yes, we can do it already, at this moment, if you compile pcbnew with
scripting capabilities, and put any of these
http://bazaar.launchpad.net/~kicad-testing-committers/kicad/testing/files/head:/pcbnew/scripting/plugins/
 under ~/.kicad_plugins/  (which may change later as we discussed recently)
they will get loaded and available to the user under the footprint-wizard.


>
> I like this spiral feature as a sample script when somebody can get to it.
>  I like it
> better as a script than as C++ so it can be tuned and customized rapidly.
>
>
Yesterday I uploaded a capacitive slider generator, you give it a set of
parameters, and you can watch the shape change in realtime, and, when
you're comfortable with the results you can (not now..) save it to your
current footprint library.



> Dick
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>



-- 

Miguel Angel Ajo Pelayo
http://www.nbee.es
+34 636 52 25 69
skype: ajoajoajo

Follow ups

References