How do I merge two lines (which share a common endpoint) into one line?
Use a Style which displays âend-pointsâ to make them easier to seeâŚ
With nothing selected, use the Move Tool on the colinear vertex and drag it to one of the other endsâŚ
âFredoToolsâ includes a âRemove-Lonely-Verticesâ toolâŚ
Useful if you have lots of themâŚ
See this: [Plugin] FredoTools:RemoveLonelyVertices 1.2a - 20 Jul 11 ⢠sketchUcation ⢠1
The download is here: SketchUp Plugins | PluginStore | SketchUcation
You also need to install the latest LibFredo from here: SketchUp Plugins | PluginStore | SketchUcation
are the two lines going in the same direction (as in- it looks like the two lines should be one single straight line)
or- do the lines have an angle in them and youâd like to join them into a single polyline?
Both, I wanna merges lines that are on the same âlineâ, and lines that have an angle to eachother. I seached my head off in the Sketchup programme, but couldnât find a button. Interestingly, there is a button to split lines, but there seems to be no button to merge them again (?!). Iâm not too interested in plug-ins and stuff, as this thing is so essential that I prefer to wait till they put in a âfactory installedâ button. Thank for the replies so far âŚ
well, you need to âweldâ the lines and youâll need to use plugins to do so⌠I suppose you can keep waiting though.
the split option is for layout.app⌠not sketchup.
If you have two colinear edges butted end-to-end, draw a third edge from the common endpoint to anywhere, then erase it. The original two edges will now be one, with the extra endpoint gone.
-Gully
Jeff I think he might be referring to Explode Curve.
Gully thatâs a useful tip not many people realise works, but not so handy on a fully exploded curve.
Steven saying you donât want to use plugins is understandable in some ways, but limiting yourself by not even downloading a tool that most would argue should be part of the standard tool set is a bit self defeating.
You can quickly install Weld from the extension warehouse and save yourself lots of time.
Sorry, was a bit childishly stubborn there. Have in the meantime installed
"Weldâ. It appears under âExtensionsâ in the menu, so I guess itâs properly
installed. Only, when I select the two lines (in this case, theyâre
segments of the same Arc, with of course a common Endpoint) and then click
on âWeldâ, NOTHING happens. Tried tweeking all the possible setting options
of the Weld plug-in, to no avail âŚ
Letâs backtrack a littleâŚ
You have two segments of an Arc.
Why would you want to âweldâ those edges ?
âWeldâ tools simply takes a selection of edges that meet at end vertices, they can be either simple âloneâ edges or edges that are bound into an arc or other curve objectâŚ
âWeldingâ them combines them into a single bound curve [they then all select in one click].
It cannot weld edges that âbranchâ - because as you know an edge coming into a curve splits that curve where it touches anyway.
Welding two Arc segments will at best only make a new Curve with two segments, it looks like an Arc but it now has no radius etc - an Arc is a special subset of Curve⌠It may even leave it as a 2 segment Arc ?
If you have Exploded the Arc into its separate edges, then you can recombine them into a single bound curve using a âweldâ operation. It will not be an Arc.
If you use a Style that shows end-points you should not see the ends of the segments that form an arc or curve [you will see just the start/end of the whole âcurveâ].
If you do it is no longer one object.
All of this still begs the question⌠what do you want to do this ?
Perhaps if you pasted a screenshot of what it is you have we might understand better and thereby help you betterâŚ
Thanks for the tip, Gully, and it works indeed, that is, for simple, colinear lines.
However, my situation is that of an arc (consisting of about 12 sub segments) cut in two separate lines. So it looks like a normal arc, but when you select it, only half turns blue. Donât know how it happened, probably when I constructed it using an aid line or something.
And thatâs what I want to change. It schould entirely turn blue. I donât think your method would work.
Tigâs asking all the right question and as I hadnât used that specific version of weld I installed it and tested.
And here it is welding segments together.
It gets complicated indeed, but there seems to be a misunderstanding. Thereâs no âbranchingâ. I just drew a simple Arc. The middle of it had to pass through a certain point in space. Couldnât find a way to fix that point using the guide line or protractor tools, so I drew a temporary edge, and then drew the midpoint of that arc through the endpoint of that edge. Of course, afterwards I deleted the temporary edge, and the rest is history: the arc now consists of two separate lines.
For my purpose it needs to be a single line, because the intention is to draw 3 parallel arcs so I can form a solid body. Then Iâm gonna move one of the rectangular end faces of that body while the other face stays put, to deform the body. If one of the arc edges does not consist of a single line, Iâd get an awkward knack halfway the body âŚ
Thanks for the Vid.
Did exactly that: clicked to select line one ( = 6 segments of the arc), then shift + clicked to select line two (selected the other 6 segments of the arc). So arc was entirely selected. Then went to âExtensionsâ and then clicked on âWeldâ. Nothing happened. Still two separate lines âŚ
BY THE WAY, tested âWeldâ on two simple colinear lines, and it works âŚ
The only thing I can think of is that there is the tiniest of gaps or a bit of your helper line between the endpoints of your two arches. I have an old version of Weld in my SketchUp 8, and it had no problem welding two arches with a common endpoint.
BTW, if you had made a group of your helper lines before drawing the arc, it wouldnât have split it in the first place
Anssi
The edges must all touchâŚ
AlsoâŚ
Switch all layers ON.
Switch View > Hidden Geometry ON.
If you have ill-advisedly put some geometry in an âoffâ state but left in the same context as your arc it will continue interact with the new arc.
Layers/hiding does not separate geometry if merely makes it unseen - use groups or components and assign them off layers to do the same thing AND avoid unexpected interactionsâŚ
That is possibly why itâs in two piecesâŚ
An arc does not spontaneously split.
Of you select the pieces of the arc, and there are no branching edges [hiding an edge does not stop itâs interaction with other geometry in its context] - then they should all weld into a single curve.
It will look like an arc, but it will actually be a âcurveâ !
To get a complete âarcâ you need to ensure there are no hidden intersecting edges and them remake the arc from scratchâŚ
We have come along way from the original questionâŚ
It has been like âpulling teethâ as we say where I come from
Gee, guys, could I possibly have been more explicit about the circumstances under which my âtipâ works? Obviously, it doesnât pertain to an exploded curve or two otherwise non-colinear edges.
And Steven, as TIG mentioned, your original question could certainly have been asked with more precision. As you phrased it, it might have been referring to colinear edges. In other words, youâve led us on a merry chase, which is a saying where I come from.
-Gully
Ok, next time I wonât bother âlikingâ your tip or wording my reply to include it.
Dear all
Sorry for raising the spirits with my âunprecise questionsâ. In the mean time, Iâve moved on (or should I say, buggered off), but not without discovering the CULPRIT.
It turn out there was an esoteric, plasma-like Endpoint (without a line attached to it!) floating in space. I discovered it by accident when, after I had entirely erased the Arc, the Guide Line Tool kept snapping to a point in empty space, right where the separation point in the Arc had been. I framed the area with a Selection Rectangle, but nothing showed up. Then I resorted to the Eraser Tool, which indeed also snapped to it, and I immediately pulled the left-mouse-button-trigger, sending it to its demise. Thereafter I redrew the arc, and the problem was no more
Donât know where it came from. I never used Layers in the project, so it couldnât have come âfrom another dimensionâ. I owed you this account after all your efforts.
Thanks again
Steven
This is an old conversation but I found your answer simple and elegant and just what I needed. I had two connected lines that I needed to be one.
Thank you!
Great tip Gully!!! Thank you.
Chris