I found this today and thought That I’d share it here because it is really cool.
If you need to make a POLYLINE of objects that continuously touch at their endpoints, this ones for you.
- EJA <enter> to start – (Entity Join All)
- Select one object in the chain – can be a Line, Arc or Polyline.
That’s it. The routine will check to see if the endpoints touch and if they do, it will join them for you.
The original post can be [found here] on the second page. It is also called PEJA.lsp
;Entity Join All
;Joins lines, arcs & Polylines at their endpoints automatically.
; All you have to do is select one object
; by Kent Cooper @ Autodesk forums
(defun C:EJA (/ peac cmde); = Polyline Edit: Join All
(setq peac (getvar ‘peditaccept))
(setvar ‘peditaccept 1)
(setq cmde (getvar ‘cmdecho))
(setvar ‘cmdecho 0)
(command“_.pedit” pause “_join”“_all”“”“”)
(setvar ‘peditaccept peac)
(setvar ‘cmdecho cmde)