Skip to main content
Question

Moving a line

  • December 2, 2019
  • 3 replies
  • 196 views

gvenhorst
Contributor
Forum|alt.badge.img+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?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • December 2, 2019

Created a workspace that moves the line 5 meters:

Hope this helps.


bwn
Evangelist
Forum|alt.badge.img+26
  • Evangelist
  • 562 replies
  • December 3, 2019

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.


gvenhorst
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • 20 replies
  • December 4, 2019

 

Hi,

 

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