test2.py 213 Bytes
Newer Older
1
import pcbnew
2

3
pcb = pcbnew.GetBoard()
4

5
for m in pcb.GetModules():
6
	print m.GetReference(),"(",m.GetValue(),") at ", m.GetPosition()
7
	for p in m.GetPads() 
8 9 10
		print "    pad",p.GetPadName(), "at",p.GetPosition()