--- In [email protected], Philip Pemberton <[EMAIL PROTECTED]> wrote: > > Hi, > I'm thinking about creating a few scripts to interface Kicad with the > FreeRouting.net PCB router. This will probably involve grabbing the locations > of the various pads and unrouted nets and outputting them in Specctra DSN format. > > But I have a few questions. > > 1) Has anyone done anything like this before?
Not that I am aware of. > 2) Is the Python interface capable of supplying this kind of information, or > am I going to have to write a parser for the KiCAD PCB and footprint files and > go from there? The Python support was not implemented down to the pcbnew/ class BOARD_ITEM level. That is still on my personal "todo" list. Until then, take a look at BOARD_ITEM::Show() and BOARD::Show(). We could write analogous functions for each object derived from BOARD_ITEM, say BOARD_ITEM::ExportSpectra(). The important work would be in BOARD::ExportSpectra(). This subject probably belongs on the developer's list. Please forward to one of these Kicad lists, any documentation links to this "Spectra DSN format" for future reference. So that even after this is implemented, somebody can support any code written for it. Also, by doing the research and giving us the file format info, you make it easier for us to help you further. Dick Hollenbeck SoftPLC Corporation http://softplc.com
