DRC unable to be performed via Python scripting API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Unknown
|
Bug Description
I posted the following to the KiCad Developer's mailing list and nobody seems to be able to answer the question.
-------
I'm trying to figure out how to run the DRC in pcbnew from the Python Scripting API. I've managed to get API into an iPython session (https:/
It looks like if I can get the DRC to run, there seems to be an API for accessing the marker's it adds to the board which exposes https:/
GetMARKER(self, *args) method of pcbnew.BOARD instance
GetMARKER(BOARD self, int index) -> MARKER_PCB
GetMARKERCount(
GetMARKERCo
I did find, board.Test_
Test_Drc_
Test_
There also seems to be the pcbnew.DRC_VISIBLE constant, but I couldn't find where that might be used.
I had a dig around the KiCad source in the scripting directory, and the other files with DRC in their name but didn't see anything similar mapped into the API (but maybe I'm looking in the wrong area?)
Does anyone know how to cause the DRC to run from the Python scripting API? (Or if it isn't currently exposed, the correct functions to expose via SWIG?)
Thanks for your help!
-------
After more digging I've come to the conclusion it is currently impossible to cause a DRC to run via the Python API. It would be awesome if this could be added.
Changed in kicad: | |
importance: | Undecided → Wishlist |
status: | New → Triaged |
tags: | added: pcbnew python |
Changed in kicad: | |
milestone: | none → 6.0.0-rc1 |
Changed in kicad: | |
importance: | Wishlist → Unknown |
status: | Expired → Fix Released |
FYI - As this is a feature I'm really interested in having implemented, I'm willing to offer a bounty of $US150 to the developer who gets this implemented and into an official KiCad repo (or a $US200 donation to CERN if the developer prefers, in this case the donation should also be matched through my employer's matching program too).