Jump to content

How to make a check deviation label with personalized color


---
 Share

Recommended Posts

---

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
Share on other sites

  • 3 weeks later...
---

Hi Marco,

you can set the background color to dynamic -> user defined:
image.thumb.png.6ad05930e03b6a9463f40b353a5fc4df.png

Nanno

Link to comment
Share on other sites

---

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?

image.png

image.png

Link to comment
Share on other sites

---

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".image.png.fbeb4647134044f66111fb06475b00ce.png

Link to comment
Share on other sites

 Share

×
×
  • Create New...