kicad/pcbnew/scripting/tests/test2.py

15 lines
280 B
Python
Raw Normal View History

2012-03-10 21:40:41 +00:00
pcb = pcbnew.GetBoard()
m = pcb.m_Modules.item()
while m:
print m.GetReference(),"(",m.GetValue(),") at ", m.GetPosition()
m.SetValue("pepe")
p = m.m_Pads.item()
while p:
print " pad",p.GetPadName(), "at",p.GetPosition()
p = p.Next()
m = m.Next()