Skip to content

Instantly share code, notes, and snippets.

@qu1ck
Created November 20, 2019 00:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qu1ck/eb3d82b91c663542f6849718d2e1552a to your computer and use it in GitHub Desktop.
Save qu1ck/eb3d82b91c663542f6849718d2e1552a to your computer and use it in GitHub Desktop.
Kicad plugin to make all references invisible
import pcbnew
class MakeRefsInvisible(pcbnew.ActionPlugin, object):
def defaults(self):
self.name = "Make references invisible"
self.category = "Modify PCB"
self.description = "Make all footprint references invisible."
def Run(self):
b = pcbnew.GetBoard()
for m in b.GetModules():
m.Reference().SetVisible(False)
MakeRefsInvisible().register()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment