[Ma...] Posted May 7, 2024 Share Posted May 7, 2024 Hello, I have to make a personalized check deviation label with background color with automatic color (green if it's in tolerance, yellow for warning and red if it's out of tolerance. This is possibile if I select the tolerance legend, but if I want to use a normal legend type, I am not able to do this. In substance: I want to use a dynamic background color on a label using the tolerance, but without using the tolerance legend. Anyone can help me? Link to comment https://qualityforum.zeiss.com/topic/3949-how-to-make-a-check-deviation-label-with-personalized-color/ Share on other sites More sharing options...
[Na...] Posted May 28, 2024 Share Posted May 28, 2024 Hi Marco, you can set the background color to dynamic -> user defined: Nanno Link to comment https://qualityforum.zeiss.com/topic/3949-how-to-make-a-check-deviation-label-with-personalized-color/#findComment-11596 Share on other sites More sharing options...
[Ma...] Posted May 29, 2024 Author Share Posted May 29, 2024 Hi Nanno, I tried with the code shown in the images, but I am wrong with something, I think. I have the dimension 10.85±0.075 and I want that if the result is between ±0.075 the background color become green, otherwise it become red. Where am I wrong? Link to comment https://qualityforum.zeiss.com/topic/3949-how-to-make-a-check-deviation-label-with-personalized-color/#findComment-11606 Share on other sites More sharing options...
[Mi...] Posted May 29, 2024 Share Posted May 29, 2024 You can try to indent the lines starting with "return" with a leading tab character. Also use "else:" with a colon instead of just "else". Link to comment https://qualityforum.zeiss.com/topic/3949-how-to-make-a-check-deviation-label-with-personalized-color/#findComment-11610 Share on other sites More sharing options...
[Ma...] Posted May 29, 2024 Author Share Posted May 29, 2024 Wonderful, it works! Thank you very much! Link to comment https://qualityforum.zeiss.com/topic/3949-how-to-make-a-check-deviation-label-with-personalized-color/#findComment-11612 Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in