Skip to content

Instantly share code, notes, and snippets.

@kinoshita-lab
Created May 4, 2022 13:23
Show Gist options
  • Save kinoshita-lab/b4104599e450e4e79e588f6ae122dfe2 to your computer and use it in GitHub Desktop.
Save kinoshita-lab/b4104599e450e4e79e588f6ae122dfe2 to your computer and use it in GitHub Desktop.
Change each footprints' value text size
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