kicad/pcbnew/swig/tests/test1.py

12 lines
241 B
Python

from __future__ import print_function
import pcbnew
pcb = pcbnew.GetBoard()
for m in pcb.GetFootprints():
print(m.GetPosition())
for p in m.Pads():
print("p=>", p.GetPosition(), p.GetName())
print(p.GetPosition())