Get ID & view Of elements on Drawing Sheet

Hi,

I need to fetch the ID & view of element on the drawing sheet for ( Notes, Dimension , GTOL ).

Using this ID and View i will select the elements on drawing sheet.

For Eg :

boolstatus = Part.Extension.SelectByID2("RD5@Drawing View4", "DIMENSION", 0.333534018021441, 0.718821688571126, 0, False, 0, Nothing, 0)

boolstatus = Part.Extension.SelectByID2("DetailItem207@Drawing View4", "GTOL", 0.317386491977695, 0.732708560968748, 0, True, 0, Nothing, 0)

For me to be able to select the element by its ID, i need should be able to fetch it using API first.

-Aniket

SolidworksApi macros