Asking about selection by mouse click

Hi All,

I have one sketch that contain several circles (no overlapping circle). Now, I want to create a macro that allow user to click any where and then this macro will check whether the location is inside any circle. If it does, the related circle will be selected.

However, I could find any function to test whether one point is inside sketch contour. Do you have any Idea how to implement it?

TIA,

Stanley

SolidworksApi macros