X,Y Coordinates for circles and edges

Is there a way to get x,y,z coordinates for a circle or an edge in a drawing view.

I need to create ordinate dimensions but, I don't want to repeat a vertical dimension if the  y coordinates of two differents circles are same.

And same goes for x coordinates.

SolidworksApi macros