Change part color

Hello,

I am trying to change the part color via API.

I trying to record a macro to this function but the recorded macro is empty maybe there isn't function that do this?

thanks

Saar

SolidworksApi macros