Two Polylines Won't Join?

Two Polylines Won't Join?

Anonymous
Not applicable
104,619 Views
13 Replies
Message 1 of 14

Two Polylines Won't Join?

Anonymous
Not applicable

Hi! I'm new to AutoCAD.

 

I'm trying to join the two polylines that I have visible in the attached file, but for some reason they just won't. I've tried PEDIT and MPEDIT. I assume this means that they're not quite touching but I can't find the issue. It looks like the shorter one has a line segment on the left end that is causing a problem but I don't know what.

 

Please help!

 

Thank you!

Accepted solutions (1)
104,620 Views
13 Replies
Replies (13)
Message 2 of 14

steve216586
Advisor
Advisor

Most likely one or both have a Z value, or Z values which aren't equal. Try FLATTEN. If that doesn't work, I often EXPLODE the plines, FLATTEN and JOIN successfully. 

"No one can make you feel inferior without your consent. "-Eleanor Roosevelt
Message 3 of 14

Patchy
Mentor
Mentor
Accepted solution

Explode the short one, you have 2 segments at the end.

0 Likes
Message 4 of 14

Kent1Cooper
Consultant
Consultant

The upper-rightward one doubles back on itself -- the place where you want to Join it to the other one is an intermediate vertex, not the end.  In PEDIT, select Edit Vertex, hit Enter to see the X marker move around.  PEDIT / <select upper-rightward Pline> / Edit vertex / Break / Next / Go / eXit / Join / <select other Pline> <Enter> <Enter>

Kent Cooper, AIA
Message 5 of 14

HullDrafter
Advocate
Advocate

I couldn't get them to join using Pedit either.

However, if you use "Fillet" with a Radius of Zero (0), it does work.

An AuotLISP routine that I got from Dan Abbott's Book "AutoCAD, secrets every usaer should know" helped me to short cut the fillet with zero radius down to two letters "FZ"

 

(defun c:fz () ;begin fillet zero
  (setq old_radius (getvar "filletrad"))
  (setvar "filletrad" 0)
  (command ".fillet" pause pause)
  (setvar "filletrad" old_radius)
)

 

Hope this helps.

HD

Message 6 of 14

Anonymous
Not applicable

Thank you everyone! Exploding and deleting the extra line segment worked great.

0 Likes
Message 7 of 14

Patchy
Mentor
Mentor

I agree your way works good until a polyline has a zero length at the end and I missed it.

0 Likes
Message 8 of 14

Kent1Cooper
Consultant
Consultant

@Patchy wrote:

I agree your way works good until a polyline has a zero length at the end and I missed it.


You can tell whether there's a zero-length segment at the end in at least two ways.  In PEDIT, in the Edit vertex mode, hit Enter/space to move to the next vertex, and if it starts with a zero-length segment, the X marker won't move the first time, or if it ends with one, won't move between two "stops" at the end.  Or in the Properties box, Geometry list, Vertex slot, pick on the left-right arrows to move the same X marker around, and for a zero-length segment, it won't move between two adjacent numbered vertices.  If either reveals a zero-length segment, the same PEDIT approach can be used to fix it [or a variant if it's at the end, which would also of course be needed with my earlier suggestion in that case].

 

If this is a common-enough problem, a routine could certainly be made [there's probably something out there already -- this is at least related] to take any zero-length segment(s) out of any Polyline.

Kent Cooper, AIA
0 Likes
Message 9 of 14

Anonymous
Not applicable

u can select one of them then move the vertix that u want to join with the other vertix then move it back to it then use join ( click j then enter )

Message 10 of 14

Anonymous
Not applicable

This is the only method that worked. Thanks 🙂 

0 Likes
Message 11 of 14

Anonymous
Not applicable

it joined my plines but it also distorted my geometry, some times even deleting altogether. 


@steve216586 wrote:

Most likely one or both have a Z value, or Z values which aren't equal. Try FLATTEN. If that doesn't work, I often EXPLODE the plines, FLATTEN and JOIN successfully. 



0 Likes
Message 12 of 14

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> it joined my plines but it also distorted my geometry

Can you please show the dwg-files, one before the JOIN and a second one after the JOIN? So the next time this happens and after JOIN the geometry has issues then save the drawing, then run undo to the state before the JOIN and save again (well, with a different name).

 

Also please start command _ABOUT and show us a screenshot from that dialog so we know your exact AutoCAD type and version.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 13 of 14

Anonymous
Not applicable

Problem is in Elevation.... go to Properties and make both polylines elevation "O"  or same value 

0 Likes
Message 14 of 14

binaya.paudelL8YWS
Explorer
Explorer
Thanks for your input. Exploding plines and joining helped me.
0 Likes