Hello, I wrote a simple Phyhon script to search for anomalous tracks in current PCB (for example tracks that are shorter than a minimal length). Once I get the list of tracks, I would like to highlight the tracks on the PCB view in order to enable the user to easily identify and analyze them. I tryied the following:
track.SetSelected()
pcbnew.Refresh()
Actually, the track get selected and highlighted which is fine but it will not be visible if it is behind another item. For example if the track is under a via it will not be visible. This is different from the very same selection done in the GUI. Using the GUI, if you select a track which is under a via it will be highlighted and rendered on top of the via. It seems like I need to change the z-index of the track programatically but I couldn’t find any way to do this.
Thanks,
Massimo