Created
August 16, 2024 05:28
-
-
Save aerialist/d1f93dcd9b510f84a6da4153226104a4 to your computer and use it in GitHub Desktop.
KiCad script to move all 'K*' components to 0,0 position
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 | |
board = pcbnew.GetBoard() | |
footprints = board.GetFootprints() | |
for footprint in footprints: | |
if footprint.GetReference()[0] == 'K': | |
footprint.SetPos(pcbnew.VECTOR2I_MM(0,0)) | |
pcbnew.Refresh() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment