Im in Kicad 6.0.2 and I’m trying to write script that selects multiple footprints:
import pcbnew
board = pcbnew.GetBoard()
footprints = board.GetFootprints()
footprints[0].GetReference() # this prints R1
footprints[0].SetSelected() # nothing happens
pcbnew.Refresh() # nothing happens
R1 remains unselected. How to select footprints in script in kicad 6? Thanks.
footprints[0].SetSelected(True) prints error: TypeError: EDA_ITEM.SetSelected() takes 1 positional argument but 2 were given