Skip to main content
Solved

double the length of a line

  • June 30, 2014
  • 4 replies
  • 9 views

Forum|alt.badge.img
Dear All , 

 

 

How to double the length of the line from the end point . 

 

 

Thanks, 

Best answer by takashi

Hi,

 

 

If the line is a single line segment, use the LengthCalculator to get the length and the Extender (End port) to create extended part.

 

And then, connect the extended part to the original line using the LineJoiner, if necessary.

 

Hope this helps.

 

 

Takashi

 

 

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.

4 replies

takashi
Celebrity
  • Best Answer
  • June 30, 2014
Hi,

 

 

If the line is a single line segment, use the LengthCalculator to get the length and the Extender (End port) to create extended part.

 

And then, connect the extended part to the original line using the LineJoiner, if necessary.

 

Hope this helps.

 

 

Takashi

 

 


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • June 30, 2014
Or copy the line and move one frorm startpoint of either to endpoint of either.

Forum|alt.badge.img
  • Author
  • July 1, 2014
Thanks all , I got it working with Takashi suggestion , I use clone as suggested by Gio but I didn't find an option to move it to the end point of line . 

 

 

Thanks , 

takashi
Celebrity
  • July 1, 2014
Hi,

 

 

I think Gio's method is: for the copied line, extract end point coordinate (x, y) with the CoordinateExtractor (Index: 1), and move the line by (x, y) with the Offsetter.

 

 

Anothor approach.

 

1) Extract start point coordinate (x, y) with the CoordinateExtractor (Index: 0).

 

2) Move the original line with the Offsettor (X Offset: -x, Y Offset: -y), so that the start point matches with origin (0, 0).

 

3) Extend the line with the Scaler (X: 2, Y: 2, Scale Origion: 0,0).

 

4) Move the extended line to the original location with the 2nd Offsetter (X Offset: x, Y Offset: y).

 

 

Takashi