2012-05-01 15:13:36 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
from pcbnew import *
|
|
|
|
lst = FootprintEnumerate("/usr/share/kicad/modules/sockets.mod")
|
|
|
|
for name in lst:
|
|
|
|
m = FootprintLoad("/usr/share/kicad/modules/sockets.mod",name)
|
|
|
|
print name,"->",m.GetLibRef(), m.GetReference()
|
2013-04-18 21:23:11 +00:00
|
|
|
for p in m.Pads():
|
2012-05-10 20:49:07 +00:00
|
|
|
print "\t",p.GetPadName(),p.GetPosition(),p.GetPos0(), p.GetOffset()
|
2013-04-18 21:23:11 +00:00
|
|
|
|