kicad/pcbnew/swig/tests/test2.py

11 lines
263 B
Python

from __future__ import print_function
import pcbnew
pcb = pcbnew.GetBoard()
for m in pcb.GetModules():
print(m.GetReference(), "(", m.GetValue(), ") at ", m.GetPosition())
for p in m.Pads():
print(" pad", p.GetName(), "at", p.GetPosition())