Skip to content

Instantly share code, notes, and snippets.

@mbainrot
Created December 7, 2020 08:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbainrot/bd507737de6220e1f65280ac7a214cc3 to your computer and use it in GitHub Desktop.
Save mbainrot/bd507737de6220e1f65280ac7a214cc3 to your computer and use it in GitHub Desktop.
kicad pcbnew python set all track width
board = pcbnew.GetBoard()
tracks = board.GetTracks()
targetWidth = 300000 # 300000 = 0.3 mm
for track in tracks:
track.SetWidth(targetWidth)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment