14 lines
363 B
Python
14 lines
363 B
Python
#!/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()
|
|
module.GetValueObj().SetVisible(False) # set Value as Hidden
|
|
module.GetReferenceObj().SetVisible(True) # set Reference as Visible
|
|
|
|
pcb.Save("mod_"+filename) |