Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Join (All to Pline)

6 REPLIES 6
Reply
Message 1 of 7
Anonymous
1273 Views, 6 Replies

Join (All to Pline)

In continuation with thread All to Pline by Mr. Abbas. I want to add one more function to this lisp i.e. Join all the objects selected.

Can this be done?

I tried this:

(command "_.pedit" "m" ename "" "j" ename "")

or 

(command "_.pedit" "" "j" ename "" "")

 

 

But it gives me an error something like this:

 

Requires numeric distance, two points, or option keyword.
; error: Function cancelled

Enter fuzz distance or [Jointype] <0.000>: j

Enter join type [Extend/Add/Both] <Extend>: *Cancel*

 

 

or

 

Command: ch2pl

Select objects: Specify opposite corner: 5 found

Select objects:


*Invalid selection*
Expects a point or
Window/Last/Crossing/BOX/ALL/Fence/WPolygon/CPolygon/Multiple]:
; error: Function cancelled
Select polyline or [Multiple]:
Enter an option [Close/Join/Width/Edit vertex/Fit/Spline/Decurve/Ltype
gen/Reverse/Undo]: *Cancel*

Command: Specify opposite corner:
Command: *Cancel*

6 REPLIES 6
Message 2 of 7
Anonymous
in reply to: Anonymous

Okay, I found one in Visual Basic Forum. They have named the selection as a group and then you can join those objects.

 

I will try it tomorrow morning and revert back. Till then, any guidance/suggestions are most welcome.

 

Thanks in advance.

Message 3 of 7
pendean
in reply to: Anonymous

MPEDIT command, part of Express Tools, not an option?
Message 4 of 7
Anonymous
in reply to: pendean

Sorry for late reply.

If two lines are having a common point then yes it definitely converts them into polyline, but if they are at some distance apart, is there any other option then using fillet command to join them?

Message 5 of 7
stevor
in reply to: Anonymous

If they are linear enough, to some criteria, they can be made into one segment.
S
Message 6 of 7
gccdaemon
in reply to: stevor

That's what the fuzz distance is. you enter a numerical value and it will join across that distance. I just use a macro for this. "MPEDIT;Y;J;" Just select your objects first. This one leaves the command open to enter fuzz distance, which will close the gaps between segments. Also convers lines and arcs to polylines.

Andrew Ingram
Civil 3D x64 2019
Win 10 x64 Pro
Intel Xeon E5-1620
32 GB Ram
Message 7 of 7
Anonymous
in reply to: gccdaemon

Okay, so  may be that is it.

My idea was to join the lines without giving any other input. I guess one thing which i did correctly was the interpretation of the lisp file. That is a good thing for a starter like me.

 

Thanks for the replies and making the understanding more clear.

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

Post to forums  

Autodesk Design & Make Report

”Boost