IsCoincident will only work if the edges are coincident. If they are not, you may have to try and check the bounding box of these edges and then decide this.
You can get a bounding box by:
e1=GetRootPart().Bodies[0].Edges[0]
b1=e1.Shape.GetBoundingBox(Matrix.Identity)
b1.Center
b1.corner
-Aniket
How to access Ansys help links
Guidelines for Posting on Ansys Learning Forum