michaelADE - 2020-12-10

Hey all

I am using Codesys v3.5 Sp15 Patch 1 +. If it is need I am also using an IFM CR1077.

I have noticed that codesys has a built in element selection tool that allows you to highlight different selectable elements when you use the left/right arrows on a keypad. This is a very powerful feature and I would like to make use of it.
However I would also like to make it that when an element is touched/clicked on that this element will be highlighted. I know that i can use visuElems.g_SelectionManager.SelectElementAt however this requires me to reference the desired element by ID. Is there some way to return an elements ID without needing to statically enter the elements ID (as i have noticed that if i have the visualisation open on my computer and on the attached screen the selectElementAt will only select the the element on my computer, and not on the controller screen.
Also is there a way to return the element that is currently highlighted. And does anyone know where i can find more documentation on the VisuElemBase library?

I have found the selection manager example in the code sys store:
https://store.codesys.com/all-products/selection-manager.html
And this post about changing the color of the selection frame:
https://forge.codesys.com/forge/talk/Visualization/thread/b2d22877be/?limit=25#6b49/92d5/4034
And a handy option on how I can disable the keypad selection:
https://forge.codesys.com/forge/talk/Visualization/thread/aaee0357f5/