Calculate distance between two vertices

Hi,

I have two vertices which are creating an edge. Is there a way to get the distance between the vertices or atleast get the length of the edge?

I know its easy to compute the distance using the co-ordinates but want to know if Solidworks API already provides this functionality.

Thanks,

Hersh

SolidworksApi macros