join lines at overlapping nodes

Post questions on how to use or achieve an effect in Inkscape.
msdobrescu
Posts: 59
Joined: Tue Aug 02, 2011 6:50 am

join lines at overlapping nodes

Postby msdobrescu » Sat Apr 20, 2019 9:02 pm

Hello,

I revisit Inkscape 0.92 under Linux with KDE and I try to do such a simple task!
I have a drawing with lines, drawn for a simple technical schema of a wall.
I try to join the lines, as they are not yet joined, and I see the points are overlapping. Do I have no means to select the overlapping points??
I also look for some measurements lines, but all the extensions provided by my distro seem to be half-implemented.
I mean, they can be drawn without the actual values, I must add them myself, and can't chose the drawing side, so many must be adapted, so it's easier to draw them myself! Do you know any simple measurement tool, one that adds the two lines at the sides, a double arrow and a number on the side I could set?

Best Regards.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: join lines at overlapping nodes

Postby Moini » Sat Apr 20, 2019 10:02 pm

Switch to the node tool, select the end nodes you want to join of both paths, then connect them using the corresponding keyboard shortcut or the button in the node tool's tool controls.

The 'dimensions' path effect will be available in Inkscape 1.0, and there may be extensions available that do it - try a web search and browse the extension gallery at https://inkscape.org/en/gallery/=extension/
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

msdobrescu
Posts: 59
Joined: Tue Aug 02, 2011 6:50 am

Re: join lines at overlapping nodes

Postby msdobrescu » Sat Apr 20, 2019 10:26 pm

So how do I select the end nodes I want to join? That's my issue.
They are overlapping perfectly and I can't select them both at once. I find no shortcut for that, like shift and mouse or something.
Also, what is all about shortcuts? Does Inkscape obey the Gnome principles?
I've seen many applications losing usability due to that. I do use heavily cut/copy/paset/save buttons from the toolbars, but they were removed from there. It was said that was Gnome idea about how to make an application...

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: join lines at overlapping nodes

Postby tylerdurden » Sat Apr 20, 2019 11:03 pm

Nodes can be easily selected by dragging a selection window around the nodes, and the Join Selected Nodes control can be used.
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Paths.html


It seems like some of these issues are easily performed by using a CAD program like LibreCad (free), Fusion 360 (free), FreeCad ( free). Might be a more appropriate tool.


Edited based on better info below.
Last edited by tylerdurden on Mon Apr 22, 2019 1:18 am, edited 1 time in total.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

msdobrescu
Posts: 59
Joined: Tue Aug 02, 2011 6:50 am

Re: join lines at overlapping nodes

Postby msdobrescu » Sun Apr 21, 2019 6:31 am

Joining points is a basic feature of any vector tool.
Also, selecting. That does not work here.
Anyway, joining should be available for free lines too (that are not a part of an object), despite this is not my case.
I know LibreCAD, in some cases took so many time to perform import operations.

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: join lines at overlapping nodes

Postby tylerdurden » Sun Apr 21, 2019 7:31 am

Inkscape is not just any vector editor. It's first and foremost a native SVG editor. Maybe it's not for you.

I use inkscape, illustrator, Corel, affinity, designspark, sketch up, blender, Freecad, LibreCAD, vcarve, fusion, aLibre, and more. None work quite the same as the other.

There are many choices besides Inkscape.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: join lines at overlapping nodes

Postby druban » Sun Apr 21, 2019 9:59 am

I join nodes all the time in Inkscape. I find the node and path editing commands in Inkscape to be better and smarter than other programs. Selecting nodes is multi featured as well. This page is an extremely useful reference for the hard-coded shortcuts, which can't be seen in the GUI (although I'm sure someone will be along to say how they don't like using shortcuts)

Nodes don't even have to be in the same path to be joined. The :tool_node: can operate on different paths and join their nodes making them one path; you have to add the other paths to the initial selection by shift clicking them, or select several paths with :tool_selector: before switching to the :tool_node:

Inkscape can even smartly join many pairs of nodes at one time. In fact if you are certain you want all endpoint nodes joined to their closest endpoint node you can just select all and press the appropriate command, to either merge each pair into one node or create a segment joining each pair of nodes.

In short, if you can't join or merge nodes in Inkscape, the problem is definitely not with the program.
Your mind is what you think it is.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: join lines at overlapping nodes

Postby brynn » Sun Apr 21, 2019 2:14 pm

Your original message, and another message you posted in a different topic, gives me the idea you might be expecting Inkscape to work like a CAD program. Apparently in CAD programs, you instruct the program to draw a line, so long, and click "draw it". (Well, something like that, from what I surmise.) But Inkscape just doesn't work like that. Inkscape does not intend to be a cad program.

But I'm sure there are free cad programs "out there". I'm not familiar with them, but I'm sure there must be some.

msdobrescu
Posts: 59
Joined: Tue Aug 02, 2011 6:50 am

Re: join lines at overlapping nodes

Postby msdobrescu » Sun Apr 21, 2019 3:49 pm

No, I have an issue here, don't know which it is.
Long ago, when I've started with Inkscape I have found working with nodes very handy and superior to Illustrator.
Now, something is different or broken,, seemingly. Could be KDE itself, I don't know yet. Or te current build.
I have an Intuos tablet too. If I use it, the pen seems to be treated differently than the mouse, in regards of the UI.
For instance, hovering over the toolbar and tools buttons, for the mouse it provides tooltips, for the pen it does not.
Also making a simple Bezier line segment, can't stop after the segment, I need two at least to stop.
BTW, I just draw a 2D scheme, it is not for CAD purpose, just to make an idea of some feature.

msdobrescu
Posts: 59
Joined: Tue Aug 02, 2011 6:50 am

Re: join lines at overlapping nodes

Postby msdobrescu » Sun Apr 21, 2019 4:32 pm

Interesting. Chosing Bezier with triangle in shape, drawing some shape with 2 segments only, will break Inkscape (0.92.2). It won't set a stroke and fill again, no matter what I set and do with the tools.

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: join lines at overlapping nodes

Postby druban » Sun Apr 21, 2019 5:04 pm

Path Effect Power Stroke, which is used for the Triangle options, does not understand closed paths. The original implementation of shape used Path effect Pattern Along Path for all options, which works on both open and closed paths. If you are actually trying to work in Inkscape with a closed path and a triangular shape, not just looking for bugs, you can copy a triangle to the clipboard and use 'From Clipboard."
Your mind is what you think it is.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: join lines at overlapping nodes

Postby brynn » Sun Apr 21, 2019 6:20 pm

druban, are you saying that if you use a custom triangle (from clipboard), a closed path will work?

Hhmm....I just tried both ways. I got different results, where one result was "invisible" and the other gave me a couple of triangles. But neither really worked. This is with 0.92.3. However, I suspect that A LOT depends on specifically how the path is made. In my test, I used 5 or 6 cusp nodes, and closed path. It could be that smooth nodes would behave differently. Let's see.... Yeah, smooth nodes, different results. Although still not correct.

I've found that as long as I don't close the path, it works perfectly. Or if the path is already closed, I can select a node and break the path, and it works that way too. The 2 end nodes of an open path can be overlapping precisely, and it still works. But as soon as I join the nodes, the path either disappears, or goes wacky.

msdobrescu
Posts: 59
Joined: Tue Aug 02, 2011 6:50 am

Re: join lines at overlapping nodes

Postby msdobrescu » Sun Apr 21, 2019 8:06 pm

I was drawing with "Triangle in" active, not applied it after closed path (if that is possible).

Polygon
Posts: 393
Joined: Thu Dec 19, 2013 3:27 am

Re: join lines at overlapping nodes

Postby Polygon » Sun Apr 21, 2019 8:52 pm

Regarding the topic "overlapping" I guess it´s more about a vector eraser tool than simply joining endpoints:
VectorEraser.gif
VectorEraser.gif (86.13 KiB) Viewed 3265 times


Cheers
P.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: join lines at overlapping nodes

Postby brynn » Sun Apr 21, 2019 10:49 pm

msdobrescu, the problem is the closed path. The Inkscape feature which creates the Triangle In doesn't like closed paths (as druban said).

In my experience, if you break the path, it should work properly. (Select a node, then Break Path at Selected Nodes button, on Node tool control bar.)

msdobrescu
Posts: 59
Joined: Tue Aug 02, 2011 6:50 am

Re: join lines at overlapping nodes

Postby msdobrescu » Sun Apr 21, 2019 11:08 pm

Really, I think I'm drunk. :))

I recap. When I say "overlapping", I say I have a drawing with several segments, where the segments are lines with 2 nodes, in my case Beziers, but straight, each segment being in continuation of other, so each segment node has same (x, y) coordinates with a node of the next segment. No need to erase, or move the lines.

Also, using the "triangle in" is done on such segments and at some point ir becomes invisible. After that, I can't set the stroke and colour to any other shapes anymore, until I restart Inkscape.

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: join lines at overlapping nodes

Postby tylerdurden » Mon Apr 22, 2019 1:05 am

druban wrote:Nodes don't even have to be in the same path to be joined. The :tool_node: can operate on different paths and join their nodes making them one path; you have to add the other paths to the initial selection by shift clicking them, or select several paths with :tool_selector: before switching to the :tool_node:

Inkscape can even smartly join many pairs of nodes at one time. In fact if you are certain you want all endpoint nodes joined to their closest endpoint node you can just select all and press the appropriate command, to either merge each pair into one node or create a segment joining each pair of nodes.

Thanks Druban, those are much better approaches!

Image
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

msdobrescu
Posts: 59
Joined: Tue Aug 02, 2011 6:50 am

Re: join lines at overlapping nodes

Postby msdobrescu » Mon Apr 22, 2019 3:54 am

Exactly as I expect. Still does not work my disrto's build, but works the one I have built myself from your git repos.
What do you use to capture to gifs, btw?

msdobrescu
Posts: 59
Joined: Tue Aug 02, 2011 6:50 am

Re: join lines at overlapping nodes

Postby msdobrescu » Mon Apr 22, 2019 5:00 am

As side comment, I've seen this in the dependencies checks:

Code: Select all

if(WITH_IMAGE_MAGICK)
    # we want "<" but pkg_check_modules only offers "<=" for some reason; let's hope nobody actually has 7.0.0
    pkg_check_modules(MAGICK ImageMagick++<=7)
    if(MAGICK_FOUND)
        set(WITH_GRAPHICS_MAGICK OFF)  # prefer ImageMagick for now and disable GraphicsMagick if found
    else()
        set(WITH_IMAGE_MAGICK OFF)
    endif()
endif()


I have version 7, but it does not use it in this case.

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: join lines at overlapping nodes

Postby tylerdurden » Mon Apr 22, 2019 5:18 am

I'm using ShareX, it's FOSS.
https://getsharex.com/
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

msdobrescu
Posts: 59
Joined: Tue Aug 02, 2011 6:50 am

Re: join lines at overlapping nodes

Postby msdobrescu » Mon Apr 22, 2019 5:20 am

Nice, but Windows only.

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: join lines at overlapping nodes

Postby druban » Mon Apr 22, 2019 9:14 am

'Also making a simple Bezier line segment, can't stop after the segment, I need two at least to stop.'

Assuming you mean clicks. This is as it is meant to be. Hardly anyone wants to draw objects in single line segments that have to be joined later; most users are drawing more complex shapes and prefer to click just once to place a node.
The Bezier tool is quite a versatile tool, designed to make the drawing of complex shapes and curves as fast and easy as possible with a combination of clicks, click-drags and keystrokes all used while the tool is actively in the process of drawing; I suggest you read up the manual section on it!
Your mind is what you think it is.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: join lines at overlapping nodes

Postby Moini » Mon Apr 22, 2019 9:16 am

I'm using peek and key-mon.

https://github.com/phw/peek (key-mon is in the repos)
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: join lines at overlapping nodes

Postby brynn » Mon Apr 22, 2019 10:51 am

Maybe you should try reinstalling your distro's version? Sounds like it's not working properly.

Well, that would be the first step anyway, before reporting those things as bugs.

msdobrescu
Posts: 59
Joined: Tue Aug 02, 2011 6:50 am

Re: join lines at overlapping nodes

Postby msdobrescu » Mon Apr 22, 2019 3:24 pm

No, my distro is allright, only in Inkscape I have issues. I have built an 1.0 beta, so the problem might be gone with some change.


Return to “Help with using Inkscape”