diff options
Diffstat (limited to 'pcbnew/scripting/tests/test2.py')
-rw-r--r-- | pcbnew/scripting/tests/test2.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pcbnew/scripting/tests/test2.py b/pcbnew/scripting/tests/test2.py new file mode 100644 index 0000000..e925f88 --- /dev/null +++ b/pcbnew/scripting/tests/test2.py @@ -0,0 +1,8 @@ +import pcbnew + +pcb = pcbnew.GetBoard() + +for m in pcb.GetModules(): + print m.GetReference(),"(",m.GetValue(),") at ", m.GetPosition() + for p in m.Pads(): + print " pad",p.GetPadName(), "at",p.GetPosition() |