Macro required for selecting "This Configuration" for dimension in .sldprt file

Hieee All,

I have part having patent child configuration, i want macro to select all the dimension one by one in part  then select the option for "This Configuration" . Please refer following picture.

SolidworksApi/macros