Is there any way to assign color to the components by using equation manager??

Hi All,

I want to assign the color to the components inside an assembly by using the equation manager, i have tried doing it many ways but no luck with it. I also tried assigning the RGB values of the color itself inside the equation manager, but it gives me a big value which i think is the multiplication of those numbers which is gave.

I have diameter of the extruded part and now want to change the color of the part depending on the diameter of the part itself.

Any kind of help is really appreciated.

Thanks,

Raj Dave.

SolidworksParts And Features