Question

Moving a line

  • 2 December 2019
  • 3 replies
  • 32 views

Badge +6

Hi,

Have a file with lines of 10 meters each, each with its own rotation.

Want to move every line.

The midpoint must be moved to the end point.

The length, rotation and Z must not change

How do you do that?


3 replies

Userlevel 2
Badge +16

Created a workspace that moves the line 5 meters:

Hope this helps.

Badge +3

Similar to erik_jan's solution, but this one works with any line length and any number of line vertices, and even if those vertex coordinates do not produce a perfectly straight line.

It users Snipper instead of Densifier to get a MidPoint and rather than redraw the line with a Snipper+LineExtender+LineComber to redraw the line, it instead just moves the original line using Offsetter and will move the Line by the X and Y Deltas between the Endpoint and the Midpoint, regardless of what shape the line has, such that the midpoint of the Offset Line will sit on the endpoint of the original line.

Badge +6

 

Hi,

 

Thanks for the response, it worked and that saves me a lot of time.

Reply