summaryrefslogtreecommitdiff
path: root/pcbnew/scripting/tests/test1.py
blob: b1f7cffbf96b8d131ce21d3cb8e9980276979fb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
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()