lisp to join 2 line or polyline become 1 line.

lisp to join 2 line or polyline become 1 line.

xuanquang1994py
Observer Observer
1,686 Views
3 Replies
Message 1 of 4

lisp to join 2 line or polyline become 1 line.

xuanquang1994py
Observer
Observer

xuanquang1994py_0-1681986221913.png

join 2 line or pline to become a pline

0 Likes
1,687 Views
3 Replies
Replies (3)
Message 2 of 4

xuanquang1994py
Observer
Observer

hi everyone. please help me solve this problem

0 Likes
Message 3 of 4

ВeekeeCZ
Consultant
Consultant

Use PEDIT or MPEDIT with some non-zero GAP setting.

0 Likes
Message 4 of 4

Kent1Cooper
Consultant
Consultant

When they are both LINEs, attached is my JoinLines.lsp routine with its JL command, which I've used for decades.  It could presumably be modified to allow Polylines too.  Bear in mind that it works by simply changing the first Line selected to the far end of the second Line selected, and deleting the second Line, and the Lines don't need to be collinear.  It could be altered to check for that, if desired.

Kent Cooper, AIA
0 Likes