2012-08-10 21:53:50 +00:00
|
|
|
import pcbnew
|
2012-03-05 22:49:49 +00:00
|
|
|
|
2012-08-10 21:53:50 +00:00
|
|
|
pcb = pcbnew.GetBoard()
|
2012-03-05 22:49:49 +00:00
|
|
|
|
2012-08-10 21:53:50 +00:00
|
|
|
for m in pcb.GetModules():
|
2014-10-02 17:09:32 +00:00
|
|
|
print m.GetPosition()
|
|
|
|
for p in m.Pads():
|
2017-08-11 09:22:13 +00:00
|
|
|
print "p=>",p.GetPosition(),p.GetName()
|
2014-10-02 17:09:32 +00:00
|
|
|
print p.GetPosition()
|
2012-03-05 22:49:49 +00:00
|
|
|
|
|
|
|
|