Skip to main content
Question

Moving a line

  • December 2, 2019
  • 3 replies
  • 159 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?

3 replies

erik_jan
Contributor
Forum|alt.badge.img+17
  • Contributor
  • December 2, 2019

Created a workspace that moves the line 5 meters:

Hope this helps.


bwn
Evangelist
Forum|alt.badge.img+26
  • Evangelist
  • 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
  • December 4, 2019

 

Hi,

 

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings