Set a trace highlighted with python

Does anybody know how to set an element of the current board ( e.g. a trace) highlighted with a python script?

You might be able to by using pcbnew.TRACK.Draw and providing it with the GR_HIGHLIGHT parameter for the draw mode.

Here is the documentation for the function in python: http://ci.kicad.org/job/kicad-doxygen/ws/build/pcbnew/doxygen-python/html/classpcbnew_1_1TRACK.html#a04b62497ef6b4474bddc1e5f4bb13f73

I’m not very familiar with the python stuff, but hopefully this sets you on the right path.

That might work in legacy mode. In GAL, you want to get at a KIGFX::RENDER_SETTINGS instance and call SetHighlight(true, netcode); on it - unfortunately, this class doesn’t seem to exist in the Python library.

A post was split to a new topic: Highlight track in pcbnew with Python