# Geometry Translate Revit Move Line by point

I need help how geometry translate works, I want to move the line to an existing point, but it doesn’t fit

Hi @ikhsan.pc not sure do you mean something here maybe…

1 Like

You need to work out where the start point of your line is.
Then you need to know the coordinates of where you want it to be.

Use the Geometry.Translate node to move the line.

Example:

line start point = ( 5, 10, 0)

where you want it to be = ( 10 , 0, 0)

Translation = ( 5, -10 , 0) <<< so you feed 5 into the xtranslation, -10 into the ytranslation and you can leave the ztranslation blank.

2 Likes

yeah should work as well ;)…its all about where from which location on the line you will move…i just take the closest point, but could be whatever…and i just use vector by 2 points and translate by direction i think thats more eaysy…when we know from where to where…yeah many ways and thats nice

Which is easier? I think it depends on the circumstance.

yeah probably…yeah thats what i think in that case here if i understand the users question correct…but again many ways…

thank you , I mean this

1 Like

if I have 3 lines why only 1 line is transferred?

1 Like

If I change the direction of the plane, how can the line follow the direction of the change?

something here maybe ?

Yes, sir, but try with the meter unit, only 2 lines move, I tried with millimeters like your example, it worked 3 lines, but if you use a meter only 2 lines?

yeah havent tries in meters are you sure you crap 2 lines…think is about how your first codeblock is setup…[[xxxx],[xxxx]] but not sure

It’s a lot easier to see what’s going on if you actually view your data.

You’re creating 2 rectangles and therefore have 2 vectors to translate by. Changing the rectangle inputs to a single value (or two unique values) will give you 1 vector that gets applied to all lines.

1 Like