How to apply Appearance to part/assy?

How to apply Appearance to entire part at once?

Manually I can apply appearance to part/assy and that's it. But I dont know how to do it thru API.

I need to override all current appearances by one at the top level.

Regards,

Stefan

SolidworksApi macros