summaryrefslogtreecommitdiff
path: root/pcbnew/scripting/tests/test2.py
blob: e925f882569d244b82dc307a77af3e5f0b8df881 (plain)
1
2
3
4
5
6
7
8
import pcbnew

pcb = pcbnew.GetBoard()

for m in pcb.GetModules():
    print m.GetReference(),"(",m.GetValue(),") at ", m.GetPosition()
    for p in m.Pads():
        print "    pad",p.GetPadName(), "at",p.GetPosition()