<?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: JOIN not Working In Script in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/join-not-working-in-script/m-p/9381151#M110762</link>
    <description>&lt;P&gt;Lots of people consider&amp;nbsp;&lt;A href="https://www.afralisp.net/" target="_blank" rel="noopener"&gt;THIS&lt;/A&gt;&amp;nbsp; site as good starting point.&lt;/P&gt;
&lt;P&gt;I tough myself from a book (not eng).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you decide to use the PEDIT, remember that there is PEDITACCEPT sysvar.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Mar 2020 20:15:55 GMT</pubDate>
    <dc:creator>ВeekeeCZ</dc:creator>
    <dc:date>2020-03-16T20:15:55Z</dc:date>
    <item>
      <title>JOIN not Working In Script</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/join-not-working-in-script/m-p/9374203#M110754</link>
      <description>&lt;P&gt;I'm making a script to join everything in a drawing, save, then move on to the next.&lt;/P&gt;&lt;P&gt;My script is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OPENFILE &amp;lt;1st drawing&amp;gt;&lt;/P&gt;&lt;P&gt;JOIN&lt;/P&gt;&lt;P&gt;ALL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAVE&lt;/P&gt;&lt;P&gt;OPENFILE &amp;lt;next drawing&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works perfect when it is typed out. When it is saved as a .scr file and ran&amp;nbsp; the process does not work.&lt;/P&gt;&lt;P&gt;It seems like a very simple script, and I cannot get around why it is not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I physically type "JOIN" I have the choice of source or multiple objects (I reply with "ALL"):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TYPED.JPG" style="width: 485px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/740571i35597F1DAB3EF6E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="TYPED.JPG" alt="TYPED.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When it is scripted there is only the choice of "source object" and "ALL" fails (as seen below):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SCRIPT.JPG" style="width: 232px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/740570iECB09D47219D7784/image-size/large?v=v2&amp;amp;px=999" role="button" title="SCRIPT.JPG" alt="SCRIPT.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also tried:&amp;nbsp;&lt;/P&gt;&lt;P&gt;_ai_selall&lt;/P&gt;&lt;P&gt;JOIN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This again works great when typed manually, but not when scripted.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 13:07:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/join-not-working-in-script/m-p/9374203#M110754</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-12T13:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN not Working In Script</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/join-not-working-in-script/m-p/9374250#M110755</link>
      <description>&lt;P&gt;So do what you asked...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;join&lt;/P&gt;
&lt;P&gt;last&lt;/P&gt;
&lt;P&gt;all&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or try LISP to help...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(initcommandversion)&lt;/P&gt;
&lt;P&gt;join&lt;/P&gt;
&lt;P&gt;all&lt;/P&gt;
&lt;DIV id="gtx-trans" style="position: absolute; left: 131px; top: 31.5398px;"&gt;
&lt;DIV class="gtx-trans-icon"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Mar 2020 13:27:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/join-not-working-in-script/m-p/9374250#M110755</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-03-12T13:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN not Working In Script</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/join-not-working-in-script/m-p/9375014#M110756</link>
      <description>&lt;P&gt;I have no experience with LISP, so I'm trying to stick with what I know with .scr files.&lt;/P&gt;&lt;P&gt;I tried running what you suggested. Similar to what I've already been experiencing, the commands work well when manually typed, but when scripted it fails. No matter what I seem to do, the selection of objects after JOIN is flawed when scripted it seems. Here's the script I wrote:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;FILEOPEN&lt;BR /&gt;&amp;lt;filename&amp;gt;&lt;BR /&gt;JOIN&lt;BR /&gt;last&lt;BR /&gt;all&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;What my command line says:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Command: JOIN&lt;BR /&gt;Select source object: last&lt;BR /&gt;Line, open polyline, arc, elliptical arc, or open spline expected.&amp;nbsp; Select a supported object: all&lt;BR /&gt;*Invalid selection*&lt;BR /&gt;Expects a point or Last&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 18:07:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/join-not-working-in-script/m-p/9375014#M110756</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-12T18:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN not Working In Script</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/join-not-working-in-script/m-p/9375085#M110757</link>
      <description>&lt;P&gt;That's a problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to supply the JOIN command (in it's "script/lisp" version) with some single linework entity first (line, arc, polyline), then with a group of entities (all). But how would you get some single entity automatically? The most simple way was to select the last object in the database. Unfortunately, it's not a linework type of entity in you case. I don't know of any different way using just a SCRIPT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you can either use the PEDIT command with its JOIN option, or go with LISP which gives you much more opportunities to solve the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 18:42:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/join-not-working-in-script/m-p/9375085#M110757</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-03-12T18:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN not Working In Script</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/join-not-working-in-script/m-p/9375090#M110758</link>
      <description>&lt;P&gt;Just a wild guess, but what happens if you try selecting all first, then join?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 18:45:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/join-not-working-in-script/m-p/9375090#M110758</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-12T18:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN not Working In Script</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/join-not-working-in-script/m-p/9380631#M110759</link>
      <description>&lt;P&gt;Any resource in specific you would suggest to learn LISP?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 16:02:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/join-not-working-in-script/m-p/9380631#M110759</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-16T16:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN not Working In Script</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/join-not-working-in-script/m-p/9380632#M110760</link>
      <description>&lt;P&gt;Exact same issue unfortunately&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":downcast_face_with_sweat:"&gt;😓&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 16:03:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/join-not-working-in-script/m-p/9380632#M110760</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-16T16:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN not Working In Script</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/join-not-working-in-script/m-p/9380998#M110761</link>
      <description>&lt;P&gt;Try using this with PEDIT command. It worked for me on a test dwg.&lt;/P&gt;&lt;P&gt;pedit&lt;BR /&gt;m&lt;BR /&gt;all&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;join&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;save&lt;/P&gt;&lt;P&gt;Y&lt;/P&gt;&lt;P&gt;close&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 18:45:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/join-not-working-in-script/m-p/9380998#M110761</guid>
      <dc:creator>sthompson1021</dc:creator>
      <dc:date>2020-03-16T18:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN not Working In Script</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/join-not-working-in-script/m-p/9381151#M110762</link>
      <description>&lt;P&gt;Lots of people consider&amp;nbsp;&lt;A href="https://www.afralisp.net/" target="_blank" rel="noopener"&gt;THIS&lt;/A&gt;&amp;nbsp; site as good starting point.&lt;/P&gt;
&lt;P&gt;I tough myself from a book (not eng).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you decide to use the PEDIT, remember that there is PEDITACCEPT sysvar.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 20:15:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/join-not-working-in-script/m-p/9381151#M110762</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-03-16T20:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN not Working In Script</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/join-not-working-in-script/m-p/9382834#M110763</link>
      <description>&lt;P&gt;I've tried PEDIT and it doesn't seem to work for my application. I work at an underground mining operation and the drawings I'm trying to join are underground tunnel face surveys. The drawing is 3D in nature with a bunch of broken up polylines generated from our mining software. I'm trying to join as many of the touching polylines to compress the drawing as much as possible. I've attached a sample drawing if you can get it to work.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 16:01:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/join-not-working-in-script/m-p/9382834#M110763</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-17T16:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN not Working In Script</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/join-not-working-in-script/m-p/9382887#M110764</link>
      <description>&lt;P&gt;Once again, this works.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;(initcommandversion)
join
all

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="gtx-trans" style="position: absolute; left: 180px; top: -19.2784px;"&gt;
&lt;DIV class="gtx-trans-icon"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 17 Mar 2020 16:27:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/join-not-working-in-script/m-p/9382887#M110764</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-03-17T16:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN not Working In Script</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/join-not-working-in-script/m-p/9382958#M110765</link>
      <description>How about this lisp &lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-multiple-lines-together/m-p/4353221#M313907" target="_blank"&gt;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-multiple-lines-together/m-p/4353221#M313907&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Mar 2020 16:55:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/join-not-working-in-script/m-p/9382958#M110765</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2020-03-17T16:55:12Z</dc:date>
    </item>
  </channel>
</rss>

