How to disable features in menus?

How to disable features/buttons/icons in menus and in CommandManager?

Something that happend when you click extruded Boss Feature. When PropertyMenagerPage shows all other features are dissabled. How to do this?

SolidworksApi macros