add script to put refdes on fab

This commit is contained in:
King Kévin 2022-06-23 12:23:39 +02:00
parent 07819a1438
commit a71bc21fe0
1 changed files with 9 additions and 0 deletions

9
refdes2fab.py Normal file
View File

@ -0,0 +1,9 @@
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])