2012-07-15 20:01:05 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
import sys
|
|
|
|
from pcbnew import *
|
|
|
|
|
|
|
|
filename=sys.argv[1]
|
|
|
|
|
|
|
|
pcb = LoadBoard(filename)
|
|
|
|
|
|
|
|
for module in pcb.GetModules():
|
|
|
|
print "* Module: %s"%module.GetReference()
|
2013-04-18 21:23:11 +00:00
|
|
|
module.Value().SetVisible(False) # set Value as Hidden
|
|
|
|
module.Reference().SetVisible(True) # set Reference as Visible
|
2012-07-15 20:01:05 +00:00
|
|
|
|
2013-04-18 21:23:11 +00:00
|
|
|
pcb.Save("mod_"+filename)
|