Constraints II: Pin coordinates and associated rules

Asked by Aquila

Hi,

is there a way to access the pin coordinates and their associated design rules directly?
I would like to either import them in an external autorouter or try out some sorting scripts/algorithms.

Thanks for your answers in advance.

Cheers,

Aquila

Question information

Language:
English Edit question
Status:
Solved
For:
KiCad Edit question
Assignee:
No assignee Edit question
Solved by:
Wayne Stambaugh
Solved:
Last query:
Last reply:
Revision history for this message
Best Wayne Stambaugh (stambaughw) said :
#1

Footprint pad coordinates are available from the board file as is the net list. The board file format is human readable with and text editor. I doubt you would even need to delve in the kicad source code to figure out the board file formatting. You could either parse the .kicad_pcb file or the easier solution is to use the python scripting and just load a file and everything is parsed and turned into board object for you. You are free to manipulate these objects, add new objects, and write the changes back to a file.

Revision history for this message
Aquila (aquilanorica) said :
#2

Thanks Wayne Stambaugh, that solved my question.