Set colors of color palette to zenon elements via API.
Colors in zenon are a 3-byte code of RGB values. The value #EB29D6 corresponds to a strong pink tone.
If these colors are linked directly to a zenon object exactly this value is entered in the dynamic property of the element, screen, textcolor, whatsoever.
But of course you are a professional and want to use the color palette feature of zenon!
The color palette is composed by a name and two semicolon-separated strings (one could say these are joined arrays) with the name and the value of the colors.
If you are even more professional and make use of the zenon API for automated engineering and you are searching for a way to link the colors of the color palette automatically, you've come to the right place.
To link a color of the color palette link the number #80000000 (hex) + index of the color.
In the following screenshot the 'PunchFrameColor' uses the color with the index 2 of the above color palette which results in the color #343434 (dark grey).