Freeze bar

i want a macro to freeze or unfreeze  all the part features from assembly any body can help ?

SolidworksApi macros