Skip to content

Instantly share code, notes, and snippets.

@aerialist
Created August 16, 2024 05:28
Show Gist options
  • Save aerialist/d1f93dcd9b510f84a6da4153226104a4 to your computer and use it in GitHub Desktop.
Save aerialist/d1f93dcd9b510f84a6da4153226104a4 to your computer and use it in GitHub Desktop.
KiCad script to move all 'K*' components to 0,0 position
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