Python ipc api: board.clear_selection() without effect

Hi,

i am trying to do my first steps in Kicad’s python IPC API but unfortunately I am struggling to have any effect on the PCB GUI.

My version:
Version: 9.0.0-rc2-405-g466ee6fac8, release build
Build Info:
Date: Feb 6 2025 06:17:15
KICAD_IPC_API=ON

class RoundTracks(RoundTracksDialog):
    def __init__(self):
        super(RoundTracks, self).__init__(None)
        self.kicad = KiCad()
        self.board = self.kicad.get_board()
        self.all_footprints = self.board.get_footprints()
        fp = self.all_footprints[0]
        print(fp.reference_field.text.value)        #         return correctly "JP4"
        result = self.board.clear_selection()     # has no effect at all on my board's selection.

My hello world program is a little program which just should clear the selection of an object. Unfortunately the program above has no effect the selected items displayed in the GUI.

Do you have an idea what I am doing wrong?

Kind regards

A post was merged into an existing topic: Crosspost: board.clear_selection() without effect