kicad/pcbnew/scripting/tests/test1.py

12 lines
191 B
Python
Raw Normal View History

import pcbnew
2012-03-05 22:49:49 +00:00
pcb = pcbnew.GetBoard()
2012-03-05 22:49:49 +00:00
for m in pcb.GetModules():
2012-03-05 22:49:49 +00:00
print m.GetPosition()
for p in m.GetPads()
2012-03-05 22:49:49 +00:00
print "p=>",p.GetPosition(),p.GetPadName()
print p.GetPosition()