add script to move refdes to fab layer

This commit is contained in:
King Kévin 2022-06-18 14:17:05 +02:00
parent 88810ccf08
commit 9f50a52588
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])