Created
May 4, 2022 13:23
-
-
Save kinoshita-lab/b4104599e450e4e79e588f6ae122dfe2 to your computer and use it in GitHub Desktop.
Change each footprints' value text size
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pcbnew | |
size = 1.5 # this attribute BOTH affects to size and width | |
board = pcbnew.GetBoard() | |
footprints = board.Footprints() | |
for fp in footprints: | |
value = fp.Value() | |
value.SetTextSize(pcbnew.wxSizeMM(size, size)) | |
# | |
# type enter for 2 times | |
# Close the PCB and open again to see the result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment