board/refdes2fab.py

10 lines
206 B
Python
Raw Normal View History

2022-09-13 12:14:21 +02:00
import pcbnew
import sys
board = pcbnew.LoadBoard(sys.argv[1])
for fp in board.GetFootprints():
fp.Value().SetVisible(False)
fp.Reference().SetLayer(board.GetLayerID('F.Fab'))
board.Save(sys.argv[1])