Created
December 7, 2020 08:53
-
-
Save mbainrot/bd507737de6220e1f65280ac7a214cc3 to your computer and use it in GitHub Desktop.
kicad pcbnew python set all track width
This file contains 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
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