kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #13880
Re: Footprint wizard changes
On 07/05/2014 11:42 AM, John Beard wrote:
> Hi,
>
> I have made some changes to the helpers for the footprint wizards. There
> is now a matrix-based transform stack that helps simplify calculations
> that footprint wizards need to do. The patch attached is based on BZR
> rev 4975.
>
> There are also some tests in the pcbnew/scripting/tests directory
> (test_board.py and test_fpw.py). These use a method I'm not very happy
> with: they construct a kicad_pcb file with the relevant modules in it,
> and then disassemble it into modules.
> I couldn't see a way to directly
> export modules to .kicad_mod files using the Python interface.
This is C++ function PCB_IO::Format(), followed by a
PCB_IO::GetStringOutput( bool doClear )
Will give the text. Class PCB_IO, although it is a PLUGIN, has not been swigged in and of
itself, only its PLUGIN interface has been. So no access to said functions yet.
I also don't think its possible to instantiate a MODULE outside a BOARD.
> It also uses fixed sized "cells" as the call to module.GetBoundingBox()
> segfaults.
>
> I am very open to suggestions for this, but as it stands, at least it's
> a fast-turnaround way to write new wizards and make sure the existing
> ones aren't broken. I use it like this:
>
> $ pcbnew/scripting/tests/test_fpw.py && pcbnew /tmp/test.kicad_pcb
>
> Thanks,
>
> John
>
>
>
> _______________________________________________
> 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