kicad/pcbnew/swig/tests/test2.py

11 lines
266 B
Python
Raw Normal View History

from __future__ import print_function
import pcbnew
2012-03-10 21:40:41 +00:00
pcb = pcbnew.GetBoard()
2012-03-10 21:40:41 +00:00
2020-11-13 23:03:36 +00:00
for m in pcb.GetFootprints():
print(m.GetReference(), "(", m.GetValue(), ") at ", m.GetPosition())
for p in m.Pads():
print(" pad", p.GetName(), "at", p.GetPosition())