2018-08-04 15:11:45 +00:00
|
|
|
from __future__ import print_function
|
|
|
|
|
2012-08-10 21:53:50 +00:00
|
|
|
import pcbnew
|
2012-03-10 21:40:41 +00:00
|
|
|
|
2012-08-10 21:53:50 +00:00
|
|
|
pcb = pcbnew.GetBoard()
|
2012-03-10 21:40:41 +00:00
|
|
|
|
2012-08-10 21:53:50 +00:00
|
|
|
for m in pcb.GetModules():
|
2018-08-04 15:11:45 +00:00
|
|
|
print(m.GetReference(), "(", m.GetValue(), ") at ", m.GetPosition())
|
2014-10-02 17:09:32 +00:00
|
|
|
for p in m.Pads():
|
2018-08-04 15:11:45 +00:00
|
|
|
print(" pad", p.GetName(), "at", p.GetPosition())
|