Change color of a component globally in an assembly

Hello,

i would like to change the color of a selected part in an assembly via VBA API (if possible without opening the part in SWX)

This is the way it works in the SWX user interface:

Desired Result :

Using this lines changes the color of the component only in the assembly (not global)

Macro Result:

Thank you!

Daniel

SolidworksApi/macros