# Find coresponding lines from points

**URL:** <https://forum.dynamobim.com/t/find-coresponding-lines-from-points/80299>\
**Category:** Uncategorized\
**Tags:** dynamo\
**Created:** [August 25, 2022, 9:02am UTC](https://forum.dynamobim.com/t/find-coresponding-lines-from-points/80299 "2022-08-25T09:02:57Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![dynamo](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dynamo](https://forum.dynamobim.com/u/dynamo)\
**Post date:** [August 25, 2022, 9:02am UTC](https://forum.dynamobim.com/t/find-coresponding-lines-from-points/80299/1 "2022-08-25T09:02:57Z")

</div>

Hi,  
I have a linked Autocad File and i would like to “find” doors, wall-lines and connect them in Revit, so that afterwards i could create a room seperator-line with it. I could already “find” the doors (trough arcs), wall-lines and all the points which connects the doors with the wall-lines. My problem is now, that i can’t find out the corresponding line which is connected to the door through the points which connects the door with the wall-line.  
In the attachement you see a list with lines (which is corresponding to all the wall-lines which dynamo found in the linked Autocad File) and a list with points (which is corresponding to all the points which connects the doors with the wall-lines)

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

Does someone has an idea ?

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [August 25, 2022, 9:15am UTC](https://forum.dynamobim.com/t/find-coresponding-lines-from-points/80299/2 "2022-08-25T09:15:36Z")

</div>

If your “setup” always has three lines and a curve, one line tangent on the other two lines you just have to make some small calculations to find out which curve is the one which doesn’t have the same direction as the other two.

---

<div class="post-metadata">

**Author:** ![dynamo](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dynamo](https://forum.dynamobim.com/u/dynamo)\
**Post date:** [August 25, 2022, 9:18am UTC](https://forum.dynamobim.com/t/find-coresponding-lines-from-points/80299/3 "2022-08-25T09:18:01Z")

</div>

Unfortunately it is not always three lines and a curve.  
But thanks already for the reply

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [August 25, 2022, 9:21am UTC](https://forum.dynamobim.com/t/find-coresponding-lines-from-points/80299/4 "2022-08-25T09:21:13Z")

</div>

Just to be clear, you want to find the two points representing the door opening right?

Also, is the Arc of the door always in the same direction, i.e. does it always have the same end/ startpoint, that could help.

---

<div class="post-metadata">

**Author:** ![dynamo](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dynamo](https://forum.dynamobim.com/u/dynamo)\
**Post date:** [August 25, 2022, 9:24am UTC](https://forum.dynamobim.com/t/find-coresponding-lines-from-points/80299/5 "2022-08-25T09:24:42Z")

</div>

no, not at all. The aim is not to find out the door opening.  
The aim is to find out which lines connect to the door

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [August 25, 2022, 9:28am UTC](https://forum.dynamobim.com/t/find-coresponding-lines-from-points/80299/6 "2022-08-25T09:28:18Z")

</div>

Oh i see!

Check out the GroupByDistance node from the Springs package. This node groups curves by their distance relative to eachother.

---

<div class="post-metadata">

**Author:** ![dynamo](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dynamo](https://forum.dynamobim.com/u/dynamo)\
**Post date:** [August 25, 2022, 9:43am UTC](https://forum.dynamobim.com/t/find-coresponding-lines-from-points/80299/7 "2022-08-25T09:43:08Z")

</div>

Thanks, but this does not work. This node needs two equal length of lists.

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [August 25, 2022, 9:49am UTC](https://forum.dynamobim.com/t/find-coresponding-lines-from-points/80299/8 "2022-08-25T09:49:28Z")

</div>

Are you sure you have the right one?  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/4/44589bf1c78093458298afcdb24d9a97cc09c4cd.png)

---

<div class="post-metadata">

**Author:** ![dynamo](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dynamo](https://forum.dynamobim.com/u/dynamo)\
**Post date:** [August 25, 2022, 9:53am UTC](https://forum.dynamobim.com/t/find-coresponding-lines-from-points/80299/9 "2022-08-25T09:53:40Z")

</div>

I tried out both geometry.groubbydistance nodes from spring, but this does not give me the solution.

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [August 25, 2022, 9:58am UTC](https://forum.dynamobim.com/t/find-coresponding-lines-from-points/80299/10 "2022-08-25T09:58:15Z")

</div>

Could you please share some screenshots?

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [August 25, 2022, 10:41am UTC](https://forum.dynamobim.com/t/find-coresponding-lines-from-points/80299/11 "2022-08-25T10:41:32Z")

</div>

Assuming all your doors are arcs and have a leaf line going back to the wall line, you can find which line is crossing the door by getting the arc centre as well as start/end point. Make lines between the arc centre and these two points, and we know one of these must be the door leaf line, and the other our door threshold (which has no line). Get all midpoints of lines in the line set, then check if the midpoint of the lines we drew exists in those points as a string. If it doesn’t then we know this line isn’t drawn and must be our threshold line.

[find door line.dyn](https://forum.dynamobim.com/uploads/short-url/kcj4ZGDIvpdEhRkv6dbEVtQ2PPX.dyn) (44.8 KB)

![get door line](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/a/9a5a1243310afb0dd1295d7146f59cf626068e17.jpeg)

 ![find door line](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/9/b94506f07db6dd8ac49ba4d9bb1ec915cedabd2a.png)

---

<div class="post-metadata">

**Author:** ![dynamo](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dynamo](https://forum.dynamobim.com/u/dynamo)\
**Post date:** [August 25, 2022, 12:36pm UTC](https://forum.dynamobim.com/t/find-coresponding-lines-from-points/80299/12 "2022-08-25T12:36:59Z")

</div>

Thanks Gavin but i need not the blue lines. I need the red lines from your example.

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

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [August 25, 2022, 1:34pm UTC](https://forum.dynamobim.com/t/find-coresponding-lines-from-points/80299/13 "2022-08-25T13:34:45Z")

</div>

In which case you can look for all lines that are:

1. Not an arc
2. Do not have a midpoint related to the midpoint of the other door lines in my example (the IN lines vs the OUT lines)

Midpoint comparison should suit this approach as well.

---

<div class="post-metadata">

**Author:** ![christian.stan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/christian.stan/32/166296_2.png) [@christian.stan](https://forum.dynamobim.com/u/christian.stan)\
**Post date:** [August 25, 2022, 2:24pm UTC](https://forum.dynamobim.com/t/find-coresponding-lines-from-points/80299/14 "2022-08-25T14:24:12Z")

</div>

Hello,

Here is an approach

 ![25 Aout forum anglais _2022-08-25_04-23-26](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/5/b55d7733c8f5ff547becb1ee0e9d7e66438461f1.png)

Cordially  
christian.stan

---

<div class="post-metadata">

**Author:** ![dynamo](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dynamo](https://forum.dynamobim.com/u/dynamo)\
**Post date:** [August 25, 2022, 2:42pm UTC](https://forum.dynamobim.com/t/find-coresponding-lines-from-points/80299/15 "2022-08-25T14:42:37Z")

</div>

Hello Christian.stan  
I get error on the element Solid.ByUnion

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

---

<div class="post-metadata">

**Author:** ![christian.stan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/christian.stan/32/166296_2.png) [@christian.stan](https://forum.dynamobim.com/u/christian.stan)\
**Post date:** [August 25, 2022, 2:52pm UTC](https://forum.dynamobim.com/t/find-coresponding-lines-from-points/80299/16 "2022-08-25T14:52:32Z")

</div>

Sorry, I misunderstood your original problem.

I started with the wall elements.

Cordially  
christian.stan
