# Distance Between Two Non Parallel Walls

**URL:** <https://forum.dynamobim.com/t/distance-between-two-non-parallel-walls/31019>\
**Category:** Uncategorized\
**Tags:** revit, excel, dynamo\
**Created:** [January 22, 2019, 7:39am UTC](https://forum.dynamobim.com/t/distance-between-two-non-parallel-walls/31019 "2019-01-22T07:39:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![halil.a](https://avatars.discourse-cdn.com/v4/letter/h/ee7513/32.png) [@halil.a](https://forum.dynamobim.com/u/halil.a)\
**Post date:** [January 22, 2019, 7:39am UTC](https://forum.dynamobim.com/t/distance-between-two-non-parallel-walls/31019/1 "2019-01-22T07:39:05Z")

</div>

Hello dear All, I want to create a simple Dynamo script, which outputs the center to center distance of two non parallel walls.

Firstly, I started with a script for parallel walls, but now I really don’t know what I have exactly to change.  
PFA the dynamo script for parallel walls and the example wall with the Excel output. An example of two non parallel walls is also attached.

Thank you for any suggestions.

 ![Dynamo_WallDistance](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/a/9a765b46e6f5770d64216266ac8c3f4d7ef944ff.png)

---

<div class="post-metadata">

**Author:** ![Daniel\_Hurtubise](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daniel_hurtubise/32/146534_2.png) [@Daniel\_Hurtubise](https://forum.dynamobim.com/u/Daniel_Hurtubise)\
**Post date:** [January 22, 2019, 8:09am UTC](https://forum.dynamobim.com/t/distance-between-two-non-parallel-walls/31019/2 "2019-01-22T08:09:11Z")

</div>

For non parallel you have to decide where you want to measure as the distance between start will not be the same sa the distance between end.  
Or you could jsut use the middle of the curve

---

<div class="post-metadata">

**Author:** ![halil.a](https://avatars.discourse-cdn.com/v4/letter/h/ee7513/32.png) [@halil.a](https://forum.dynamobim.com/u/halil.a)\
**Post date:** [January 22, 2019, 9:37am UTC](https://forum.dynamobim.com/t/distance-between-two-non-parallel-walls/31019/3 "2019-01-22T09:37:00Z")

</div>

(post withdrawn by author, will be automatically deleted in 1 hour unless flagged)

---

<div class="post-metadata">

**Author:** ![halil.a](https://avatars.discourse-cdn.com/v4/letter/h/ee7513/32.png) [@halil.a](https://forum.dynamobim.com/u/halil.a)\
**Post date:** [January 22, 2019, 10:09am UTC](https://forum.dynamobim.com/t/distance-between-two-non-parallel-walls/31019/4 "2019-01-22T10:09:14Z")

</div>

Hello Daniel,

thank you for your fast reply.

I thought the same and tried to apply it. Please see my screenshot.  
What is the step of a wall to a line, because the node element.curves responses the list would be empty.

 ![Center](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/5/3592340076282a8a56d435aba2aa6efc59f787b0.jpeg)

---

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [January 22, 2019, 12:59pm UTC](https://forum.dynamobim.com/t/distance-between-two-non-parallel-walls/31019/5 "2019-01-22T12:59:21Z")

</div>

Hey,

I think it’s important to build graphs with simple examples that you can check, otherwise you might get funny readings…

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/f/ff8afc75312669a27dac4a87f44fabba1c965d63.png)

If you’re happy with a bit of an error, using points and lines will be fast…

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/6/96a08db44b988a46e623d0a7d0151f723ef4eab9.png)

Otherwise if you get the wall geometry, you can isolate the particular face you’re interested in and get a point from there… But you’ll still have to be careful!

Using the Dynamo preview is very useful…

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/a/1a05ff6ea8dc66b7a5c6b0ce953f014cbadaad92.png)

Hope that’s of interest!

Mark

---

<div class="post-metadata">

**Author:** ![halil.a](https://avatars.discourse-cdn.com/v4/letter/h/ee7513/32.png) [@halil.a](https://forum.dynamobim.com/u/halil.a)\
**Post date:** [January 22, 2019, 2:40pm UTC](https://forum.dynamobim.com/t/distance-between-two-non-parallel-walls/31019/6 "2019-01-22T14:40:40Z")

</div>

Hey Mark,

many thanks for your suggestions.  
And yes you are right, the dynamo preview helps a lot!
