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()
|
|
|
|
for p in m.GetPads():
|
2012-05-10 20:49:07 +00:00
|
|
|
print "\t",p.GetPadName(),p.GetPosition(),p.GetPos0(), p.GetOffset()
|
2012-05-01 15:13:36 +00:00
|
|
|
|