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