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!
Solved! Go to Solution.
Solved by Patchy. Go to Solution.
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.
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>
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
I agree your way works good until a polyline has a zero length at the end and I missed it.
@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.
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 )
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.
.
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 -
Problem is in Elevation.... go to Properties and make both polylines elevation "O" or same value