How make a code interactive?

Is there a way to call a function for user draw a rectangle?Like "ModelDoc2.SketchCircle ( )" or "ModelDoc2.SketchRectangle"without parameters?

The truth, I need too, a method to get a coordinate of position ofcursor on click.SolidworksApi macros