Align dimension and note vertically

Attached herewith is a sample drawing, I need the two selected entities will be aligned vertically.

How to align dimension and note vertically in SW Drawing?

SolidworksApi macros