add script to put refdes in fab layer

This commit is contained in:
King Kévin 2022-09-13 12:14:21 +02:00
parent b612622310
commit f558b68515
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])