<?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: End script commands generated with Notepad? in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/end-script-commands-generated-with-notepad/m-p/9001607#M129094</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; end a script commands generated with Notepad?&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The last command should end with an &lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#333333"&gt;&amp;lt;ENTER&amp;gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
    <pubDate>Mon, 02 Sep 2019 17:00:57 GMT</pubDate>
    <dc:creator>Alfred.NESWADBA</dc:creator>
    <dc:date>2019-09-02T17:00:57Z</dc:date>
    <item>
      <title>End script commands generated with Notepad?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/end-script-commands-generated-with-notepad/m-p/9001603#M129093</link>
      <description>&lt;P&gt;What is the proper sequence, character, special character to end a script commands generated with Notepad?&lt;/P&gt;&lt;P&gt;Such that the command is properly executed and is not influenced by following commands.&amp;nbsp; I desire a solution that is appropriate for all commands but am having a specific problem with "Zoom Extents".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2019 16:57:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/end-script-commands-generated-with-notepad/m-p/9001603#M129093</guid>
      <dc:creator>orders3</dc:creator>
      <dc:date>2019-09-02T16:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: End script commands generated with Notepad?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/end-script-commands-generated-with-notepad/m-p/9001607#M129094</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; end a script commands generated with Notepad?&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The last command should end with an &lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#333333"&gt;&amp;lt;ENTER&amp;gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2019 17:00:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/end-script-commands-generated-with-notepad/m-p/9001607#M129094</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2019-09-02T17:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: End script commands generated with Notepad?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/end-script-commands-generated-with-notepad/m-p/9001631#M129095</link>
      <description>&lt;P&gt;Pasting &lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#333333"&gt;&amp;lt;ENTER&amp;gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt; in the command line with or without &amp;lt;&amp;gt; prompt "Unknown command".&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2019 17:19:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/end-script-commands-generated-with-notepad/m-p/9001631#M129095</guid>
      <dc:creator>orders3</dc:creator>
      <dc:date>2019-09-02T17:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: End script commands generated with Notepad?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/end-script-commands-generated-with-notepad/m-p/9003240#M129096</link>
      <description>&lt;P&gt;At the end of each line of text in a Notepad file is an invisible character that indicates it is the end of that line of text. You want to make sure that the last line of your script also has this end-of-line character.&amp;nbsp; For example, if you wanted a script to draw three circles it might look like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 228px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/673536i94CE414FB065EEF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Note that the cursor is at the start of the 4th line. Hit the down arrow a few times to check that there aren't additional blank lines in the file.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;For example if Notepad showed the following it would indicate that you have an extra end-of-line character (the cursor is at the start of the 5th line) and that running this script would use an extra "enter" when it was done resulting in a re-execution of the circle command with a prompt to enter the circle center.&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="image.png" style="width: 243px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/673538i2732E3F0982DE1A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Place the cursor at the start of your Notepad file and use &lt;STRONG&gt;Ctrl-End&lt;/STRONG&gt; from the keyboard.&amp;nbsp; It should place the cursor at the end of the file. Check that it is after the last line of text.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 13:15:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/end-script-commands-generated-with-notepad/m-p/9003240#M129096</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2019-09-03T13:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: End script commands generated with Notepad?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/end-script-commands-generated-with-notepad/m-p/9005248#M129097</link>
      <description>&lt;P&gt;I am not aware of any command that will indicate the end a script, a space is considered a Return (Enter Key pressed) and a new line is also considered a Return and has to be used in some cases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What we tend to do is add a command after our script. In this case qsave is the last command so there can’t be any spaces or returns after this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;zoom&lt;BR /&gt;extents&lt;BR /&gt;qsave&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Script files can also contain comments, any line that begins with a semicolon (;) is considered a comment, and AutoCAD ignores it while processing the script file, you can’t have any empty lines after this as they will be considered as a return.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;;Start of Script routine&lt;BR /&gt;zoom&lt;BR /&gt;extents&lt;BR /&gt;qsave&lt;BR /&gt;;End of Script routine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Patrick&lt;BR /&gt;&lt;A href="http://www.multi-batch.com/" target="_blank" rel="noopener"&gt;http://www.multi-batch.com/&lt;/A&gt;&lt;BR /&gt;For your entire batch scripting needs&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 10:24:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/end-script-commands-generated-with-notepad/m-p/9005248#M129097</guid>
      <dc:creator>PatrickByrne</dc:creator>
      <dc:date>2019-09-04T10:24:16Z</dc:date>
    </item>
  </channel>
</rss>

