how to hide the dimension line and extension line in one side of the dimension

Hi all

Is there any possibility of hide the dimension line and extension line in one side of the dimension using macros. I done it in manually.

Thanks

SolidworksApi macros