← Back to team overview

kicad-developers team mailing list archive

Re: plot component image from command line

 

Hi RIcardo,

That's a great idea. I haven't tried your patch yet, which revision is it
intended for?

I personally think it could be upstreamed but indeed not in its current
form. There is a similar option in the Part Library Editor in File->Create
PNG File from screen.

Carl

On Sat, Mar 19, 2016 at 1:23 PM, Ricardo Crudo <ricardo.crudo@xxxxxxxxx>
wrote:

> Hello Everyone.
>
> I've attached a patch that allows to eeschema plot a PNG image from given
> library and component names via command line. First let me say that my
> intention is not to have this patch applied to upstream KiCad code, I wrote
> the patch exclusively to got this feature, I know it's wrong in many ways.
> My aim here is to use it as a tool to help us (librarians) with the
> evaluation of the users libraries pull requests at kicad-library.
>
> Ideally we would have a patched kicad version running over Jenkis,
> similiar with what Jon Neal has done for checking scripts.
>
> To test it, apply the patch and run as following:
>
> eeschema --component-png microchip_pic12mcu "PIC12(L)F1501-I/MC"
>
> You will see the eeschema window pop up and close automatically. After
> this an output.png file should have been plotted to local dir.
>
> I'm copying the developers mail list to ask a help to guide me where to
> tweak in order to prevent the windows to pop up (if possible). I've tried
> to comment out some Show and Raise methods but it didn't work out. I got a
> corrupted png and program did stop to close automatically.
>
>
> Best Regards,
> Ricardo.
>
> _______________________________________________
> 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
>
>

References