Missig some Python Functions

I have been trying to write a simple python extension for PCBNew that will allow me to export a Spectra DSN file from KiCAD 5.1.8, and call the FreeRouting executable.
According to the PCBNew doxygen docs, there is a function for this, however when I attempt to call this function from the python console, using the following two lines

import pcbnew
pcbnew.ExportSpecctraDSN()

I get the following error:
AttributeError: 'module' object has no attribute 'ExportSpecctraDSN'

I looked through the pcbnew.py file that KiCAD installed, and there is no function pcbnew.ExportSpectraDSN(). Where can I locate this function?

It’s not available in 5.1. The docs you linked are generated for nightly version.

There is also this semi-broken plugin that does what you want, if you can get it to work on your system.

@qu1ck
Ah, it is for the nightlies. That would explain it.
Probably should have a tag there, since the documentation that KiCAD 5.1 installs with itself has a link to doxygen.

Tried that, it also seems to want the nightlies:

image

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.