Line with start, end and direction

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.

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.

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

It should follow the direction of the wall.

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

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?

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

Any suggestions.

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

same here!

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.

could you show your graph ;=

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

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

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

Sure