Relation between appearances of different parts

Hello there!

I have an assembly of around 100 components with me. I want to give relations(may be equations) between appearances of the parts in my assembly.

Say "PART A" and "PART B" are yellow in colour. Now if I change the colour of "PART A" to red then the colour of "PART B" should automatically pick the same colour assigned to "PART A" and vice versa. Is it possible to do so?

I am using Solidworks 2015 SP4.

Thanks in advance.

Regards,

Bhavarth

SolidworksApi macros