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*
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.
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?
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.
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.