Hi!
I have never used scripting in KiCAD but now I want to do this. What I want to do is change drill size or change reference text width using script in multiple footprints. Could somebody tell me how to do this? I tried using script console but it does not work for me.
from pcbnew import *
pcb = GetBoard()
moduleCount = 0
for aModule in pcb.GetModules():
aModule.Reference().SetVisible(1)
aModule.SetHeight(1000000)
moduleCount = moduleCount + 1
I get this:
Traceback (most recent call last):
File "<input>", line 2, in <module>
File "E:\Program Files\KiCad\lib\python2.7\site-packages/pcbnew.py", line 9311, in SetVisible
return _pcbnew.TEXTE_MODULE_SetVisible(self, isVisible)
TypeError: in method 'TEXTE_MODULE_SetVisible', argument 2 of type 'bool'