Automatic dimensioning of drawings

I'm trying to develop automatic drawings.

I want to know:

In the drawing, can we get the coordinate value on the view by specifying the feature. So that it can be used as the coordinate value when dimensioning.

Which API do I need to use?

Thank you.

SolidworksApi/macros