← Back to team overview

kicad-developers team mailing list archive

Re: Footprint Wizard Farnell/Eagle.scr/Ultra librarian, and scripting, how to integrate

 

Hi Edwin, some kind of REST api would be perfect, I've just found they have
this:

http://partner.element14.com/docs/read/Product_Search_API_REST_Characteristics


But not sure if it provides the link or directions to get to the .zip file,
 and they require you to register an api key (depending on license it could
be included in the script).

Other way would be to fetch the http for the part itself, and then parse
the HTML finding out the .zip file with the footprint description.


Cheers,
Mike.

2012/8/6 Edwin van den Oetelaar <oetelaar.automatisering@xxxxxxxxx>

> Hello everyone,
>
> Short summary.
> I have been working with Miguel behind the scenes trying to get scripting
> fully integrated.
> One of the first thing we can do with scripting is generating foot-prints.
> Miguel already has an example working. (parametric footprint)
> Since the Farnell/Element14 website recently is making footprints
> available as eagle.scr files I would like
> to integrate that into the wizard.
> Some things are easy: getting a file from their website, like
> http://www.farnell.com/cad/1550314.zip
> Parsing this will not be hard, just some work.
>
> ** I do have a problem: how to get from an order code : 1885120 on farnell
> to the number 1550314. **
>
> Once we have the zip file, the order code is easily found, since it is in
> the zip file:
>
> Attribute OC_NEWARK '41T0725';
> Attribute OC_FARNELL '1885120';
>
> Any thoughts or experience you want to share?
>
> Thanks,
> Edwin van den Oetelaar
>
> _______________________________________________
> 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