Macro for design tree display

I'm looking to change the tree display for all my parts. Currently I have to change every part manually when I open it. As it is 3-4 changes from the default settings (and the menu vanishes after each selection) it takes some time!

SolidworksApi macros