kicad/pcbnew/scripting/tests/test2.py

11 lines
213 B
Python
Raw Normal View History

import pcbnew
2012-03-10 21:40:41 +00:00
pcb = pcbnew.GetBoard()
2012-03-10 21:40:41 +00:00
for m in pcb.GetModules():
2012-03-10 21:40:41 +00:00
print m.GetReference(),"(",m.GetValue(),") at ", m.GetPosition()
for p in m.GetPads()
2012-03-10 21:40:41 +00:00
print " pad",p.GetPadName(), "at",p.GetPosition()