Find two points lie on same curve

Hi, I wanted to find if two points lie on same curve. Assume that, I have point guid’s but don’t have the curve’s guid. Is there any python function to do this?

Thanks in advance

You can use rs.ObjectsByType(4) with 4 for curves to get a list of all the curves. Then loop to search for intersections.