cant change the color when rendering

Hi all,

i have a large assembly model at hand and i need to color a segment of a part in black and the other segment in gray but when i do this after rendering the model, the part is shown completely in yellow ??? although it has the right colors before the render procedure. Can anyone help me with this.

Saman

SolidworksPhotoworks