3/17/2025 9:22 PM | |
Joined: 1/21/2013 Last visit: 4/23/2025 Posts: 3768 Rating:
|
Hi, The polygon property that represents the with is the "Width" property, as for all other elements with such functionality. Note that it is of type UInt32, so depending on your text it can be 2 or 3, nothing in between. However, when you dynamize a property, you do not need the name of the property because the dynamization script must return a value. So within the dynamization script function, program whatever you want and make sure that 2 or 3 is returned. Kind regards |
3/18/2025 12:08 PM | |
Joined: 11/28/2024 Last visit: 4/16/2025 Posts: 38 Rating:
|
Is this script approach correct? If the color is (150,150,150) the border width should be 3 if the color is (0,0,0) the width should be 2. export function Polygon_1_BorderWidth_Trigger(item, triggerDataSet) { var A = Tags("V1").Read(); var B = Tags("V2").Read(); var C = Tags("V3").Read(); if(B == 1 || C ==1) { return Polygon_1.Width.RGB(150,150,150) = 3; } if(A == 1) { return Polygon_1.Width.RGB(0,0,0) = 2; } return Polygon_1.Width.RGB(150,150,150) = 3; }
|
Follow us on