add script to move refdes to fab layer

usb-ac_cable_tester
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 100644
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])