<?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 perform multiple JOIN commands at once on unrelated lines in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8596778#M149938</link>
    <description>&lt;P&gt;Is there a way to perform multiple JOIN commands at once on unrelated lines? For example, if I had a series of 5 lines that had been cut in half using a trim command as such:&lt;/P&gt;
&lt;P&gt;| | | | |&lt;/P&gt;
&lt;P&gt;| | | | |&lt;/P&gt;
&lt;P&gt;... I could re-connect them with a JOIN command, but I'd have to do so with 5 separate commands. Is there a way to do them as a batch in a single command?&lt;/P&gt;</description>
    <pubDate>Thu, 14 Feb 2019 18:52:56 GMT</pubDate>
    <dc:creator>Gh_man</dc:creator>
    <dc:date>2019-02-14T18:52:56Z</dc:date>
    <item>
      <title>perform multiple JOIN commands at once on unrelated lines</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8596778#M149938</link>
      <description>&lt;P&gt;Is there a way to perform multiple JOIN commands at once on unrelated lines? For example, if I had a series of 5 lines that had been cut in half using a trim command as such:&lt;/P&gt;
&lt;P&gt;| | | | |&lt;/P&gt;
&lt;P&gt;| | | | |&lt;/P&gt;
&lt;P&gt;... I could re-connect them with a JOIN command, but I'd have to do so with 5 separate commands. Is there a way to do them as a batch in a single command?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 18:52:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8596778#M149938</guid>
      <dc:creator>Gh_man</dc:creator>
      <dc:date>2019-02-14T18:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: perform multiple JOIN commands at once on unrelated lines</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8596835#M149939</link>
      <description>&lt;P&gt;Before using Join command, use MULTIPLE command or using autolisp&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-quot-mend-quot/td-p/849976" target="_blank"&gt;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-quot-mend-quot/td-p/849976&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 19:15:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8596835#M149939</guid>
      <dc:creator>Patchy</dc:creator>
      <dc:date>2019-02-14T19:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: perform multiple JOIN commands at once on unrelated lines</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8596844#M149940</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;not sure to understand the question, but if you start command &lt;STRONG&gt;&lt;FONT color="#333399"&gt;_JOIN&lt;/FONT&gt;&lt;/STRONG&gt; simply select all 10 lines (e.g. using window selection) ... doesn't that work for you?&lt;/P&gt;
&lt;P&gt;Why the need of calling &lt;STRONG&gt;&lt;FONT color="#333399"&gt;_JOIN&lt;/FONT&gt;&lt;/STRONG&gt; 5 times?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 19:18:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8596844#M149940</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2019-02-14T19:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: perform multiple JOIN commands at once on unrelated lines</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8596852#M149941</link>
      <description>&lt;P&gt;Try this routine. Learn how to use LISP&amp;nbsp;&lt;A href="http://www.lee-mac.com/runlisp.html" target="_blank" rel="noopener"&gt;HERE&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:JoinMultiple (/ ss i a ang lst ent)

  (if (setq ss (ssget "_:L" '((0 . "LINE"))))
    (repeat (setq i (sslength ss))
      (setq ent (ssname ss (setq i (1- i)))
            ang (angle (cdr (assoc 10 (entget ent))) (cdr (assoc 11 (entget ent))))
            ang (rtos (- ang (if (&amp;gt;= ang pi) pi 0.)) 2 6)
            lst (if (setq a (assoc ang lst))
                  (subst (cons ang (cons ent (cdr a)))
                         a
                         lst)
                  (cons (list ang ent) lst)))))
  (foreach l (mapcar 'cdr lst)
    (while (&amp;gt; (length l) 1)
      (setq e (car l)
            l (cdr l))
      (repeat (setq i (length l))
        (command "_.JOIN" e (nth (setq i (1- i)) l) ""))))
  (princ)
 )&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Feb 2019 19:20:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8596852#M149941</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2019-02-14T19:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: perform multiple JOIN commands at once on unrelated lines</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8596860#M149942</link>
      <description>&lt;P&gt;Join command only let you pick 1 source&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 406px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/603120i43EFBAB7AF209034/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 19:22:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8596860#M149942</guid>
      <dc:creator>Patchy</dc:creator>
      <dc:date>2019-02-14T19:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: perform multiple JOIN commands at once on unrelated lines</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8596868#M149943</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#333399"&gt;&lt;EM&gt;&amp;gt;&amp;gt; Join command only let you pick 1 source&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;I can use window selection and take all objects with one selection&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20190214_202436.png" style="width: 610px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/603121iCB215F9D91504BCB/image-dimensions/610x379?v=v2" width="610" height="379" role="button" title="20190214_202436.png" alt="20190214_202436.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 19:25:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8596868#M149943</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2019-02-14T19:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: perform multiple JOIN commands at once on unrelated lines</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8596881#M149944</link>
      <description>&lt;P&gt;Thank you&lt;SPAN class="UserName lia-user-name lia-user-rank-Mentor lia-component-message-view-widget-author-username"&gt; &lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365" target="_self"&gt;&lt;SPAN class="login-bold"&gt;BeekeeCZ&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;, that lisp does exactly what I needed!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="lia-message-author-with-avatar"&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Mentor lia-component-message-view-widget-author-username"&gt; &lt;A id="link_18" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/558015" target="_self"&gt;&lt;SPAN class="login-bold"&gt;Patchy&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;, "MULTIPLE" does speed up the process by saving a right-click, but I'd like to window-select all lines in a single go.&lt;/DIV&gt;
&lt;DIV class="lia-message-author-with-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="lia-message-author-with-avatar"&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Employee lia-component-message-view-widget-author-username"&gt;&lt;A class="lia-link-navigation lia-page-link lia-user-name-link" href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/389680" target="_self"&gt;&lt;SPAN class="login-bold"&gt;Alfred.NESWADBA&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;, I'm quite curious how you made that work? When my selection set includes even one line that is not co-linear with the others, I get an error message and nothing happens. Ie., in my example at the top, I would get the message: "0 objects joined, 10 objects discarded from the operation". The only way I can make it work is to do each line individually.&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 Feb 2019 19:29:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8596881#M149944</guid>
      <dc:creator>Gh_man</dc:creator>
      <dc:date>2019-02-14T19:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: perform multiple JOIN commands at once on unrelated lines</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8596895#M149945</link>
      <description>&lt;P&gt;Hi Alfred,&lt;/P&gt;
&lt;P&gt;Doesn't work for me (probably mine is 11 y.o. autocad ☺)&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 19:33:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8596895#M149945</guid>
      <dc:creator>Patchy</dc:creator>
      <dc:date>2019-02-14T19:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: perform multiple JOIN commands at once on unrelated lines</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8596914#M149946</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/389680"&gt;@Alfred.NESWADBA&lt;/a&gt;&amp;nbsp;, see the file. The result of JOIN command depends on whether all lines (or even arcs!) are in one direction and behind each other or not. The routine collects all lines by angles, then joins them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 19:45:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8596914#M149946</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2019-02-14T19:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: perform multiple JOIN commands at once on unrelated lines</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8597012#M149947</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this is my result:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;div class="video-embed-center video-embed"&gt;&lt;iframe class="embedly-embed" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FOd5UqtPUeiY%3Ffeature%3Doembed&amp;amp;display_name=YouTube&amp;amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DOd5UqtPUeiY&amp;amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FOd5UqtPUeiY%2Fhqdefault.jpg&amp;amp;type=text%2Fhtml&amp;amp;schema=youtube" width="400" height="225" scrolling="no" title="ACADsupp JoinMultipleObjects 2019 AN01" frameborder="0" allow="autoplay; fullscreen; encrypted-media; picture-in-picture;" allowfullscreen="true"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But running further tests ... the difference is that my objects are touching end-point to start-point, and that's why it's working on my side, my sample.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 20:19:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8597012#M149947</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2019-02-14T20:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: perform multiple JOIN commands at once on unrelated lines</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8597068#M149948</link>
      <description>&lt;P&gt;Something interesting about the "ends touching" method: the end result is a series of polylines, not lines, even though both methods use the join command. Not sure why it was programmed that way?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 20:37:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8597068#M149948</guid>
      <dc:creator>Gh_man</dc:creator>
      <dc:date>2019-02-14T20:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: perform multiple JOIN commands at once on unrelated lines</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8597090#M149949</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/389680"&gt;@Alfred.NESWADBA&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#333399"&gt;&lt;EM&gt;&amp;gt;&amp;gt; Join command only let you pick 1 source&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;I can use window selection and take all objects with one selection&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm wondering, too, how you do that, or at least &lt;EM&gt;what conditions you're starting with&lt;/EM&gt;....&amp;nbsp; I&amp;nbsp;can do that &lt;EM&gt;if they're touching at their ends&lt;/EM&gt;, though if&amp;nbsp;I'm starting with&amp;nbsp;Line entities, it makes them into two-line-segment collinear &lt;EM&gt;Polylines&lt;/EM&gt;, with a vertex at the point where they met, not into just overall-length Lines as Joining them separately does.&amp;nbsp; If there are &lt;EM&gt;gaps&lt;/EM&gt;&amp;nbsp; broken out of them as in earlier images, I get the same 0-joined messages.&amp;nbsp; [Acad2019]&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 20:44:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8597090#M149949</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2019-02-14T20:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: perform multiple JOIN commands at once on unrelated lines</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8597092#M149950</link>
      <description>&lt;P&gt;Yes, I know. The JOIN command give vary outcomes depending on mutually position and way of selection. And I wouldn't say it's expected behavior. Why aren't the line in your case connected in single lines but the polylines instead? Why in my case are 2 breaked and separated lines connected into one line?! It does not make much of sense.&lt;/P&gt;
&lt;P&gt;Fortunately the OP has what he wanted and the case is closed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 20:44:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/perform-multiple-join-commands-at-once-on-unrelated-lines/m-p/8597092#M149950</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2019-02-14T20:44:44Z</dc:date>
    </item>
  </channel>
</rss>

