kicad/pcbnew/scripting/tests/test1.py

12 lines
199 B
Python

import pcbnew
pcb = pcbnew.GetBoard()
for m in pcb.GetModules():
print m.GetPosition()
for p in m.Pads():
print "p=>",p.GetPosition(),p.GetPadName()
print p.GetPosition()