Dimension hole using Smart dimension by selecting face automatically

I am trying to write a macro which will add all the dimensions of holes by running a macros. I will select the face on which hole are made and if i run the macro it should auto dimension as shown in above figure all the holes should get dimension. Kindly help me to achieve the same.

Thanks in advance,

Sunil patil

SolidworksApi/macros