# Line with start, end and direction

**URL:** <https://forum.dynamobim.com/t/line-with-start-end-and-direction/110838>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [June 19, 2025, 4:42pm UTC](https://forum.dynamobim.com/t/line-with-start-end-and-direction/110838 "2025-06-19T16:42:16Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![VijayS](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@VijayS](https://forum.dynamobim.com/u/VijayS)\
**Post date:** [June 19, 2025, 4:42pm UTC](https://forum.dynamobim.com/t/line-with-start-end-and-direction/110838/1 "2025-06-19T16:42:16Z")

</div>

I have several points located on a wall, and I want to create lines aligned with the wall’s direction. I do not want to specify a length for the lines. I only want to use three inputs: start point, end point, and the wall’s location (via Element.GetLocation). Please suggest the best approach.

 ![2025-06-19_22h05_05](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/7/778ca1cf81f7156b3f4aebf03837d6f4848883e8.png)

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [June 20, 2025, 6:37am UTC](https://forum.dynamobim.com/t/line-with-start-end-and-direction/110838/2 "2025-06-20T06:37:30Z")

</div>

There are is a node called `Line.StartPoint`.  
I guess you need to look into _Vector_ nodes  
for the direction and get the length of your line.

---

<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:** [June 20, 2025, 10:37am UTC](https://forum.dynamobim.com/t/line-with-start-end-and-direction/110838/3 "2025-06-20T10:37:09Z")

</div>

As the points are on the wall, what do you need the location for?

---

<div class="post-metadata">

**Author:** ![VijayS](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@VijayS](https://forum.dynamobim.com/u/VijayS)\
**Post date:** [June 20, 2025, 11:03am UTC](https://forum.dynamobim.com/t/line-with-start-end-and-direction/110838/4 "2025-06-20T11:03:15Z")

</div>

It should follow the direction of the wall.

---

<div class="post-metadata">

**Author:** ![VijayS](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@VijayS](https://forum.dynamobim.com/u/VijayS)\
**Post date:** [June 20, 2025, 11:05am UTC](https://forum.dynamobim.com/t/line-with-start-end-and-direction/110838/5 "2025-06-20T11:05:09Z")

</div>

My inputs are the start point, end point and the wall location retrieved via Element.GetLocation.

---

<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:** [June 20, 2025, 11:47am UTC](https://forum.dynamobim.com/t/line-with-start-end-and-direction/110838/6 "2025-06-20T11:47:11Z")

</div>

Ok, so if the start point is on the wall, and the end point isn’t…. How do you expect the line to follow the direction of the wall?

---

<div class="post-metadata">

**Author:** ![VijayS](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@VijayS](https://forum.dynamobim.com/u/VijayS)\
**Post date:** [June 20, 2025, 12:32pm UTC](https://forum.dynamobim.com/t/line-with-start-end-and-direction/110838/7 "2025-06-20T12:32:46Z")

</div>

Yes, I will place families between specific points, aligned to run along the direction of the wall.

---

<div class="post-metadata">

**Author:** ![VijayS](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@VijayS](https://forum.dynamobim.com/u/VijayS)\
**Post date:** [June 24, 2025, 11:16am UTC](https://forum.dynamobim.com/t/line-with-start-end-and-direction/110838/8 "2025-06-24T11:16:57Z")

</div>

Any suggestions.

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [June 24, 2025, 11:23am UTC](https://forum.dynamobim.com/t/line-with-start-end-and-direction/110838/9 "2025-06-24T11:23:27Z")

</div>

Hi @VijayS not really a suggestion, but im still not sure what it is 😉 could you draw or show your rvt and the whole graph, you have tried so far ? probably give more understanding at least for me 😉 😉

---

<div class="post-metadata">

**Author:** ![\_Vijay](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/_vijay/32/91307_2.png) [@\_Vijay](https://forum.dynamobim.com/u/_Vijay)\
**Post date:** [June 24, 2025, 11:38am UTC](https://forum.dynamobim.com/t/line-with-start-end-and-direction/110838/10 "2025-06-24T11:38:58Z")

</div>

same here!

> [@sovitek](#):
>
> but im still not sure what it is

---

<div class="post-metadata">

**Author:** ![VijayS](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@VijayS](https://forum.dynamobim.com/u/VijayS)\
**Post date:** [June 24, 2025, 11:53am UTC](https://forum.dynamobim.com/t/line-with-start-end-and-direction/110838/11 "2025-06-24T11:53:05Z")

</div>

I have some lines aligned with the wall, and I’m running a tracker between these lines. It works perfectly along the X-axis, but it’s misaligned along the Y-axis.

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [June 24, 2025, 11:56am UTC](https://forum.dynamobim.com/t/line-with-start-end-and-direction/110838/12 "2025-06-24T11:56:12Z")

</div>

could you show your graph ;=

---

<div class="post-metadata">

**Author:** ![VijayS](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@VijayS](https://forum.dynamobim.com/u/VijayS)\
**Post date:** [June 24, 2025, 12:19pm UTC](https://forum.dynamobim.com/t/line-with-start-end-and-direction/110838/13 "2025-06-24T12:19:21Z")

</div>

![wall length div_25 grapha_2025-06-24_05-47-41](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/f/bfe839bebfeeed7dabf942e4bf5bfd3fbe848a9a.png)

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [June 24, 2025, 12:26pm UTC](https://forum.dynamobim.com/t/line-with-start-end-and-direction/110838/14 "2025-06-24T12:26:16Z")

</div>

wauw…thanks 😉 here in the forum, we dont dont do job, and i guess what you show is something there should work there, probably wrong 😉 , here is it more in principle, so show us very simple where is goin wrong 😉 😉 PS zoom in the image so we at least can see it 😉 😉

---

<div class="post-metadata">

**Author:** ![VijayS](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@VijayS](https://forum.dynamobim.com/u/VijayS)\
**Post date:** [June 24, 2025, 12:40pm UTC](https://forum.dynamobim.com/t/line-with-start-end-and-direction/110838/15 "2025-06-24T12:40:21Z")

</div>

Apologies, my scripting is currently inconsistent, so I attempted to illustrate the issue. Sorry for the inconvenience.

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [June 24, 2025, 12:43pm UTC](https://forum.dynamobim.com/t/line-with-start-end-and-direction/110838/16 "2025-06-24T12:43:55Z")

</div>

no worries 😉 just show us your script, and we will be so happy to help if we can, thats why we have this forum here 😉 😉

---

<div class="post-metadata">

**Author:** ![VijayS](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@VijayS](https://forum.dynamobim.com/u/VijayS)\
**Post date:** [June 24, 2025, 12:47pm UTC](https://forum.dynamobim.com/t/line-with-start-end-and-direction/110838/17 "2025-06-24T12:47:59Z")

</div>

Sure
