Macro needed for avoiding overlapping of dimensions in drawing

Can anyone help me out for developing out a macro, needed for drawing file where we can avoid the dimensions that get overlapped.

SolidworksApi macros