Getting coordinate from "EDGE" by using "SelectByID2"

Hi!  I'm developing an API in Solidwork and havingproblemswith "SelectByID2".  The command needs"x,y,z" asparameters which I don't know how to get thevalues of them. Would there be any way we can retrieve the xy z coordinatesby clicking on an "EDGE" of an object?Thanks !  Any responsesto this problem are greatlyappreciated.
SolidworksApi macros