How to use macro to change the appearance of a part?

I tried to record a macro for changing the part appearance. However, the code does not show anything regarding the change. Does anyone have any example (e.g. change RGB and change the transparent)

Thank

SolidworksApi macros