<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Silent Pedit in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/3075080#M147983</link>
    <description>&lt;P&gt;Hey Kent,&lt;/P&gt;&lt;P&gt;this routine (EJA) is awesome. I use it almost everyday.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;~Greg&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jun 2011 03:35:17 GMT</pubDate>
    <dc:creator>greg_battin</dc:creator>
    <dc:date>2011-06-29T03:35:17Z</dc:date>
    <item>
      <title>Silent Pedit</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/2048261#M147970</link>
      <description>I'm trying to execute a pedit command in a lisp routine, without echoing, with no luck...&lt;BR /&gt;
&lt;BR /&gt;
cmdecho and nomutt dont resolve my problem...&lt;BR /&gt;
&lt;BR /&gt;
Can somebody points me the right way please...&lt;BR /&gt;
&lt;BR /&gt;
Any help would be most appreciated.&lt;BR /&gt;
&lt;BR /&gt;
Cheers&lt;BR /&gt;
&lt;BR /&gt;
Henrique</description>
      <pubDate>Mon, 20 Aug 2007 09:09:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/2048261#M147970</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2007-08-20T09:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Silent Pedit</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/2048262#M147971</link>
      <description>Mr. Silva&lt;BR /&gt;
&lt;BR /&gt;
First of all you have to get an idea of how Pedit command works.</description>
      <pubDate>Mon, 20 Aug 2007 09:36:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/2048262#M147971</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-08-20T09:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Silent Pedit</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/2048263#M147972</link>
      <description>which version of acad do you use?&lt;BR /&gt;
(command "_pedit" w "_f" "")&lt;BR /&gt;
is a silent command in acad 2004&lt;BR /&gt;
where (setq w (car (entsel "your polyline")))&lt;BR /&gt;
CMDECHO 0&lt;BR /&gt;
EXPERT 1&lt;BR /&gt;
dont forget the (princ) at the end of the&lt;BR /&gt;
(defun&lt;BR /&gt;
..&lt;BR /&gt;
..&lt;BR /&gt;
..&lt;BR /&gt;
   (princ)&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
hmsilva wrote:&lt;BR /&gt;
&amp;gt; I'm trying to execute a pedit command in a lisp routine, without echoing, with no luck...&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; cmdecho and nomutt dont resolve my problem...&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Can somebody points me the right way please...&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Any help would be most appreciated.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Cheers&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Henrique</description>
      <pubDate>Mon, 20 Aug 2007 09:44:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/2048263#M147972</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-08-20T09:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Silent Pedit</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/2048264#M147973</link>
      <description>Hi gert&lt;BR /&gt;
&lt;BR /&gt;
thanks for your reply, I use A2K8 and I am doing lots of pedit's&lt;BR /&gt;
inside my code, and each time I do one I get's the echo message ...&lt;BR /&gt;
&lt;BR /&gt;
I have the CMDECHO set to 0, and EXPERT to zero too.&lt;BR /&gt;
&lt;BR /&gt;
I'll try to set to 1.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again&lt;BR /&gt;
&lt;BR /&gt;
Henrique</description>
      <pubDate>Mon, 20 Aug 2007 09:56:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/2048264#M147973</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2007-08-20T09:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Silent Pedit</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/2048265#M147974</link>
      <description>CMDECHO 0&lt;BR /&gt;
EXPERT 1&lt;BR /&gt;
&lt;BR /&gt;
no luck...&lt;BR /&gt;
&lt;BR /&gt;
Thanks anyway…&lt;BR /&gt;
&lt;BR /&gt;
Henrique</description>
      <pubDate>Mon, 20 Aug 2007 10:05:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/2048265#M147974</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2007-08-20T10:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Silent Pedit</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/2048266#M147975</link>
      <description>make a screenshot of the message you get and post it&lt;BR /&gt;
&lt;BR /&gt;
hmsilva wrote:&lt;BR /&gt;
&amp;gt; Hi gert&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; thanks for your reply, I use A2K8 and I am doing lots of pedit's&lt;BR /&gt;
&amp;gt; inside my code, and each time I do one I get's the echo message ...&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I have the CMDECHO set to 0, and EXPERT to zero too.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I'll try to set to 1.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Thanks again&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Henrique</description>
      <pubDate>Mon, 20 Aug 2007 12:02:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/2048266#M147975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-08-20T12:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Silent Pedit</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/2048267#M147976</link>
      <description>Hi gert&lt;BR /&gt;
&lt;BR /&gt;
It's done..&lt;BR /&gt;
&lt;BR /&gt;
Setting NOMUTT to 1&lt;BR /&gt;
&lt;BR /&gt;
Thanks again...&lt;BR /&gt;
&lt;BR /&gt;
Cheers&lt;BR /&gt;
&lt;BR /&gt;
Henrique</description>
      <pubDate>Mon, 20 Aug 2007 13:18:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/2048267#M147976</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2007-08-20T13:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Silent Pedit</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/2048268#M147977</link>
      <description>Hi hmsilva,&lt;BR /&gt;
How about my code maybe can help you&lt;BR /&gt;
[code]&lt;BR /&gt;
; arp is stand for As Replace Pedit&lt;BR /&gt;
;        Design by  : Adesu &lt;ADE suharna=""&gt;&lt;BR /&gt;
;        Email      : mteybid@yuasabattery.co.id&lt;BR /&gt;
;        Homepage   : http://www.yuasa-battery.co.id&lt;BR /&gt;
;        Create     : 08 June 2007&lt;BR /&gt;
;        Program no.: 0592/06/2007&lt;BR /&gt;
;        Edit by    :&lt;BR /&gt;
;        Idea from  : VVA&lt;BR /&gt;
&lt;BR /&gt;
(defun c:arp (/ ss)&lt;BR /&gt;
  (prompt "\nSelect alls object line")&lt;BR /&gt;
  (while&lt;BR /&gt;
    (not ss)&lt;BR /&gt;
    (setq ss (ssget))&lt;BR /&gt;
    )    ; while&lt;BR /&gt;
  (if&lt;BR /&gt;
    ss&lt;BR /&gt;
    (progn&lt;BR /&gt;
      (if&lt;BR /&gt;
 (and (getvar "peditaccept")(= (getvar "peditaccept") 1))&lt;BR /&gt;
 (command "_pedit" "_m" ss "" "_j" 0 "")&lt;BR /&gt;
 (command "_pedit" "_m" ss "" "_y" "_j" 0 ""))&lt;BR /&gt;
      )  ; progn&lt;BR /&gt;
    )    ; if&lt;BR /&gt;
  (princ)&lt;BR /&gt;
  )      ; defun&lt;BR /&gt;
[/code]&lt;BR /&gt;
&lt;BR /&gt;
&lt;HMSILVA&gt; wrote in message news:5694569@discussion.autodesk.com...&lt;BR /&gt;
I'm trying to execute a pedit command in a lisp routine, without echoing, &lt;BR /&gt;
with no luck...&lt;BR /&gt;
&lt;BR /&gt;
cmdecho and nomutt dont resolve my problem...&lt;BR /&gt;
&lt;BR /&gt;
Can somebody points me the right way please...&lt;BR /&gt;
&lt;BR /&gt;
Any help would be most appreciated.&lt;BR /&gt;
&lt;BR /&gt;
Cheers&lt;BR /&gt;
&lt;BR /&gt;
Henrique&lt;/HMSILVA&gt;&lt;/ADE&gt;</description>
      <pubDate>Tue, 21 Aug 2007 00:08:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/2048268#M147977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-08-21T00:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Silent Pedit</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/2048269#M147978</link>
      <description>Hi Adesu&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your reply, my code is done..&lt;BR /&gt;
&lt;BR /&gt;
My problem was just removing the echo from the command line and I solve it seting the NOMUTT sysvar to 1.&lt;BR /&gt;
&lt;BR /&gt;
My code is an automatic Pedit, by selecting one; line, arc or poly, it scans the endpoints and perform a pedit until there is no more elements to join...&lt;BR /&gt;
&lt;BR /&gt;
Thanks again&lt;BR /&gt;
&lt;BR /&gt;
Henrique</description>
      <pubDate>Tue, 21 Aug 2007 07:42:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/2048269#M147978</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2007-08-21T07:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Silent Pedit</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/3047160#M147979</link>
      <description>&lt;P&gt;Hello Mr Silva,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please share the code.&lt;/P&gt;&lt;P&gt;I will be performing similar 1000s &amp;nbsp;of&amp;nbsp;&lt;/P&gt;&lt;P&gt;pedits. I think your last post talks about exactly what&lt;/P&gt;&lt;P&gt;I want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I am not asking too much and if its fine with&amp;nbsp;&lt;/P&gt;&lt;P&gt;you I will appreciate your help related to same&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2011 22:57:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/3047160#M147979</guid>
      <dc:creator>Ktelang</dc:creator>
      <dc:date>2011-06-04T22:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Silent Pedit</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/3047206#M147980</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;hmsilva wrote:&lt;BR /&gt;....&lt;/P&gt;&lt;P&gt;My code is an automatic Pedit, by selecting one; line, arc or poly, it scans the endpoints and perform a pedit until there is no more elements to join...&lt;BR /&gt;....&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That description sounds like a lot more work than necessary.&amp;nbsp; Just do this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun C:PEJA (/ peac cmde); = Polyline Edit: Join All&lt;BR /&gt;&amp;nbsp; (setq peac (getvar 'peditaccept))&lt;BR /&gt;&amp;nbsp; (setvar 'peditaccept 1)&lt;BR /&gt;&amp;nbsp; (setq cmde (getvar 'cmdecho))&lt;BR /&gt;&amp;nbsp; (setvar 'cmdecho 0)&lt;BR /&gt;&amp;nbsp; (command "_.pedit" pause "_&lt;STRONG&gt;join&lt;/STRONG&gt;" "_&lt;STRONG&gt;all&lt;/STRONG&gt;" "" "")&lt;BR /&gt;&amp;nbsp; (setvar 'peditaccept peac)&lt;BR /&gt;&amp;nbsp; (setvar 'cmdecho cmde)&lt;BR /&gt;&amp;nbsp; (princ)&lt;BR /&gt;)&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, in the object selection it will find everything in the current space, but it will &lt;EM&gt;ignore&lt;/EM&gt;&amp;nbsp;anything that doesn't connect end-to-end with the selected object, and anything of the wrong object type, and join everything it can.&amp;nbsp; No scanning of endpoints is needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For me back in AutoCAD 2004, setting CMDECHO to 0 &lt;EM&gt;does&lt;/EM&gt; suppress echoing to the Command: line [otherwise I wouldn't have included it here], so the problem in the original post doesn't exist.&amp;nbsp; But&amp;nbsp;even if that's changed in newer versions, the Join All approach means there &lt;EM&gt;isn't very much&lt;/EM&gt; echoed there, anyway [certainly nothing like what would be in the approach quoted above], no matter how many things are joined.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It could be made more sophisticated, such as by restricting object selection to only Peditable types, if desired.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jun 2011 02:12:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/3047206#M147980</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2011-06-05T02:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Silent Pedit</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/3048284#M147981</link>
      <description>&lt;P&gt;Simular, but if you select more than one line this one will just join the selected segments:&lt;/P&gt;&lt;PRE&gt;(defun c:pljoin (/ cmdecho peditaccept ss ss1 lent)
  (setq cmdecho (getvar "cmdecho")
        peditaccept (getvar "peditaccept")
        lent (entlast)
  )
  (setvar "cmdecho" 0)
  (setvar "peditaccept" 1)
  (princ "\nSelect object to join: ")
  (setq ss (ssget '((0 . "LINE,ARC,POLYLINE,LWPOLYLINE"))))
  (if (/= ss nil)
      (progn
	(if (= (sslength ss) 1)
          (progn
            (sssetfirst nil ss)
            (command "_.pedit" "_J" (ssget "X" '((0 . "LINE,ARC,POLYLINE,LWPOLYLINE"))) "" "")
          )
          (command "_.pedit" "_M" ss "" "_J" "0.0" "")
	)
      )
  )
  (setvar "cmdecho" cmdecho)
  (setvar "peditaccept" peditaccept)
  (princ)
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I have it in my Edit Shortcut menu.&amp;nbsp; I used to use the Macro: ^C^C^P(ssget);pedit;m;p;;j;0.0;;&lt;/P&gt;&lt;P&gt;I wrote the code because I'll often join a few lines and didn't want to have any extra joined in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2011 17:50:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/3048284#M147981</guid>
      <dc:creator>TomBeauford</dc:creator>
      <dc:date>2011-06-06T17:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Silent Pedit</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/3050250#M147982</link>
      <description>Thanks for that perfect</description>
      <pubDate>Tue, 07 Jun 2011 20:48:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/3050250#M147982</guid>
      <dc:creator>Ktelang</dc:creator>
      <dc:date>2011-06-07T20:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Silent Pedit</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/3075080#M147983</link>
      <description>&lt;P&gt;Hey Kent,&lt;/P&gt;&lt;P&gt;this routine (EJA) is awesome. I use it almost everyday.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;~Greg&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2011 03:35:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/3075080#M147983</guid>
      <dc:creator>greg_battin</dc:creator>
      <dc:date>2011-06-29T03:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Silent Pedit</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/3075164#M147984</link>
      <description>&lt;P&gt;This one&amp;nbsp; (ljoin) from beaufordt&amp;nbsp; is perfect!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Juris&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2011 06:53:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/3075164#M147984</guid>
      <dc:creator>ojuris</dc:creator>
      <dc:date>2011-06-29T06:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Silent Pedit</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/3075520#M147985</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/540307"&gt;@TomBeauford&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;....&lt;/P&gt;&lt;PRE&gt;(defun c:pljoin (/ cmdecho peditaccept ss ss1 lent)
  (setq cmdecho (getvar "cmdecho")
        peditaccept (getvar "peditaccept")
        lent (entlast)
  )
  (setvar "cmdecho" 0)
  (setvar "peditaccept" 1)
  (princ "\nSelect object to join: ")
  (setq ss (ssget '((0 . "LINE,ARC,POLYLINE,LWPOLYLINE"))))
  (if (/= ss nil)
      (progn
	(if (= (sslength ss) 1)
          (progn
            (sssetfirst nil ss)
            (command "_.pedit" "_J" (ssget "X" '((0 . "LINE,ARC,POLYLINE,LWPOLYLINE"))) "" "")
          )
          (command "_.pedit" "_M" ss "" "_J" "0.0" "")
	)
      )
  )
  (setvar "cmdecho" cmdecho)
  (setvar "peditaccept" peditaccept)
  (princ)
)&lt;/PRE&gt;&lt;P&gt;....&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I like the automatic handling of multiple joins if multiple things are selected, but join-everything-possible if only one is.&amp;nbsp; For my own use, I made a streamlined version [removed&amp;nbsp;unused lent variable and took unused ss1 out of local variables list, removed two unnecessary (progn)'s &amp;amp; an (sssetfirst),&amp;nbsp;simplified (ssget) filtering and join-all-possible object selection, made prompt more descriptive, shortened&amp;nbsp;command name and some variable names, consolidated (setq)'s, repositioned (setvar)'s to eliminate need for error handling to reset&amp;nbsp;if cancelled in selection].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;;; PolylineJoin.lsp [command name: PJ]&lt;BR /&gt;;; Based on c:pljoin by beaufordt from AutoCAD Customization Discussion Group&lt;BR /&gt;;; Streamlined by Kent Cooper, June 2011&lt;BR /&gt;(defun C:PJ (/ cmde peac ss); = Polyline Join&lt;BR /&gt;&amp;nbsp; (princ "\nTo join touching objects into Polyline(s) [pick 1 to join all possible objects to it],")&lt;BR /&gt;&amp;nbsp; (setq&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ss (ssget '((0 . "LINE,ARC,*POLYLINE")))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cmde (getvar 'cmdecho)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; peac (getvar 'peditaccept)&lt;BR /&gt;&amp;nbsp; ); end setq&lt;BR /&gt;&amp;nbsp; (setvar 'cmdecho 0)&lt;BR /&gt;&amp;nbsp; (setvar 'peditaccept 1)&lt;BR /&gt;&amp;nbsp; (if ss&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if (= (sslength ss) 1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "_.pedit" ss "_join" "_all" "" ""); then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "_.pedit" "_multiple" ss "" "_join" "0.0" ""); else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ); end inner if&lt;BR /&gt;&amp;nbsp; ); end outer if&lt;BR /&gt;&amp;nbsp; (setvar 'cmdecho cmde)&lt;BR /&gt;&amp;nbsp; (setvar 'peditaccept peac)&lt;BR /&gt;&amp;nbsp; (princ)&lt;BR /&gt;); end defun&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2011 13:24:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/3075520#M147985</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2011-06-29T13:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Silent Pedit</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/3539798#M147986</link>
      <description>&lt;P&gt;An update of the PolylineJoin.lsp routine [PJ command], with added error handling,&amp;nbsp;rejection of selection 3D Polylines [which can't be joined] and 2D "heavy" Polylines that are&amp;nbsp;spline- or fit-curved [because joining them to other things removes their curvature], preservation of selected Lines/Arcs that don't have contiguous objects to join to as Lines/Arcs rather than single-segment Polylines, and a few other small refinements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also posted on this later thread:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://forums.autodesk.com/t5/Visual-LISP-AutoLISP-and-General/Lines-to-pline-in-one-step/m-p/3534424#M305417"&gt;http://forums.autodesk.com/t5/Visual-LISP-AutoLISP-and-General/Lines-to-pline-in-one-step/m-p/3534424#M305417&lt;/A&gt;&lt;/P&gt;&lt;P&gt;where the same subject came up again.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2012 15:09:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/3539798#M147986</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2012-07-16T15:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Silent Pedit</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/8829934#M147987</link>
      <description>&lt;P&gt;The polylinejoin.lsp doesn't seem to work on ACAD2002. This is the error message I receive:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error: AutoCAD variable setting rejected: PEDITACCEPT 1; error: An error has&lt;BR /&gt;occurred inside the *error* functionAutoCAD variable setting rejected:&lt;BR /&gt;PEDITACCEPT nil&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know I'm using an ancient release of ACAD, but is there a way to make this work??&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 18:31:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/8829934#M147987</guid>
      <dc:creator>danielrT8PHL</dc:creator>
      <dc:date>2019-06-03T18:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Silent Pedit</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/8831140#M147988</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7589104"&gt;@danielrT8PHL&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The polylinejoin.lsp doesn't seem to work on ACAD2002. ….&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does the PEDITACCEPT variable exist at all in 2002?&amp;nbsp; If not, does it work as if in later versions it was set to 1?&amp;nbsp; That is, in PEDIT, if you select a Line or Arc that isn't already a Polyline, does it just go ahead without challenging you?&amp;nbsp; If that's the case, the routine could be "fixed" to remove all references to it, i.e. remove these lines:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;&amp;nbsp; (setvar 'peditaccept peac) &lt;EM&gt;;; in two places&lt;/EM&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; peac (getvar 'peditaccept)&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;&amp;nbsp; (setvar 'peditaccept 1)&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;and take 'peac' out of the localized variables list at the top.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 10:45:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/8831140#M147988</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2019-06-04T10:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Silent Pedit</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/8832046#M147989</link>
      <description>&lt;P&gt;What do you want to do?&lt;/P&gt;
&lt;P&gt;Maybe my VEDIT routine would be helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 16:59:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/silent-pedit/m-p/8832046#M147989</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2019-06-04T16:59:34Z</dc:date>
    </item>
  </channel>
</rss>

