How to extend/prolong and trim/cut a straight line or path in Inkscape


Question

I have some straight paths with only two nodes (start and end node). They are short and I want to prolong them in the same direction that the line is.

The paths are oblique-angled and not horizontal or vertical oriented. If so, I know that I could have used the Ctrl key to prolong in horizontal or vertical direction.

Question: Is it possible to prolong the paths in the paths direction?

1
20
10/7/2013 8:40:00 PM

Accepted Answer

Yes, you can do this easily in two ways

Moving nodes along handle lines

  1. Ensure that the nodes on the line do not have bezier style handles.

  2. Edit the line, and select the node at the end you want to extend.

  3. Press Ctrl+Alt and drag the node.

The node will move exactly along the line, changing the length.

This works because the handles of the nodes effectively point exactly towards the other end of the line, so dragging a node in the direction of its handle means it moves the node nearer or further away from the other end, exactly along the line itself.

Scaling the line

This works only if you have selected Geometric bounding box as Bounding box to use in the Inkscape preferences. The Inkscape default Visual bounding box will change the direction of your line!

  1. turn off the scale stroke width option at the top (as shown in the snippet below, just to the right of the 'Affect:' label)

  2. select the line

  3. Press the Ctrl key and drag the selection box corner at the end you want to extend (eg where the green arrow is shown), so as to scale the line.

The line changes thichness as you drag, but snaps back when you release the mouse.

Because you do a Ctrl+Scale, you get a uniform scale without distortion.

Because the line width is not scaled, the result is a line that is longer than it was, but has the same line width - i.e. the exact same thing as extending the line.

The snapshot below shows an original line and the effect of scaling the line in either direction.

enter image description here

21
10/7/2013 10:57:00 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow


Website under construction!!!
^