# Distance between two points on a curve!

**URL:** <https://forum.dynamobim.com/t/distance-between-two-points-on-a-curve/95417>\
**Category:** Geometry\
**Tags:** revit, dynamo\
**Created:** [November 11, 2023, 5:08pm UTC](https://forum.dynamobim.com/t/distance-between-two-points-on-a-curve/95417 "2023-11-11T17:08:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![soroush](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@soroush](https://forum.dynamobim.com/u/soroush)\
**Post date:** [November 11, 2023, 5:08pm UTC](https://forum.dynamobim.com/t/distance-between-two-points-on-a-curve/95417/1 "2023-11-11T17:08:51Z")

</div>

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 .

 ![fasele](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/d/bd752b1114532edca5298e0fe18ef1d21fb2ee8f.png)

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

---

<div class="post-metadata">

**Author:** ![soroush](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@soroush](https://forum.dynamobim.com/u/soroush)\
**Post date:** [November 11, 2023, 5:09pm UTC](https://forum.dynamobim.com/t/distance-between-two-points-on-a-curve/95417/2 "2023-11-11T17:09:34Z")

</div>

![Screenshot 2023-11-11 1380526](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/f/ff22dd0793e6625d864450e12d297bbe56bed5be.png)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [November 11, 2023, 5:18pm UTC](https://forum.dynamobim.com/t/distance-between-two-points-on-a-curve/95417/3 "2023-11-11T17:18:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![soroush](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@soroush](https://forum.dynamobim.com/u/soroush)\
**Post date:** [November 11, 2023, 5:35pm UTC](https://forum.dynamobim.com/t/distance-between-two-points-on-a-curve/95417/4 "2023-11-11T17:35:51Z")

</div>

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