Distance between two points on a curve!

Hello everyone!
I want to know how to measure the distance between two points in both x/y direction next to each other?. Cuz, at the end I need to give a specific radius to the cylinder so they won’t intersect .

I’m not able right now to upload the dynamo file, maybe I’m new here?

Geometry.DistanceTo will give you the linear distance between any two geometry elements (ie: a point and a point; a point and a curve, a solid and a surface).

This is the nearest distance on any vector, so if you want a XY constrained distance you will want to pull the geometries in question onto the XY plane, and then get the distance between the resulting geometry.

Hey @jacob.small ,
Thank u for your help. I’ll check that and I’ll share it here again.