Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Two Polylines Won't Join?

13 REPLIES 13
SOLVED
Reply
Message 1 of 14
Anonymous
90845 Views, 13 Replies

Two Polylines Won't Join?

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!

13 REPLIES 13
Message 2 of 14
steve216586
in reply to: Anonymous

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
in reply to: Anonymous

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

Message 4 of 14
Kent1Cooper
in reply to: Anonymous

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
in reply to: Anonymous

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
in reply to: Anonymous

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

Message 7 of 14
Patchy
in reply to: Kent1Cooper

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

Message 8 of 14
Kent1Cooper
in reply to: Patchy


@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
Message 9 of 14
Anonymous
in reply to: Kent1Cooper

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

This is the only method that worked. Thanks 🙂 

Message 11 of 14
Anonymous
in reply to: steve216586

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. 



Message 12 of 14
Alfred.NESWADBA
in reply to: Anonymous

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
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 13 of 14

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

Message 14 of 14

Thanks for your input. Exploding plines and joining helped me.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost