<?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: script command to end text line in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/script-command-to-end-text-line/m-p/5601889#M332215</link>
    <description>&lt;P&gt;Found the solution. Adding&amp;nbsp;&lt;SPAN&gt;\U+000D after description and then the layer name in "" works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-LAYER&lt;BR /&gt;N A-TEXT LT continuous A-TEXT LW 0.35 A-TEXT C 4 A-TEXT D General Text\U+000D"A-TEXT"&lt;BR /&gt;N A-ANNO-SYMB LT continuous A-ANNO-SYMB LW 0.35 A-ANNO-SYMB C 4 A-ANNO-SYMB D MARVY Symbols\U+000D"A-ANNO-SYMB"&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2015 19:57:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-04-21T19:57:31Z</dc:date>
    <item>
      <title>script command to end text line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/script-command-to-end-text-line/m-p/5601541#M332208</link>
      <description>&lt;P&gt;I have the below script where the layer description does not return at the space after the description (ie&amp;nbsp;&lt;SPAN&gt;General_Text)&amp;nbsp;&lt;/SPAN&gt;to select the layer (ie &lt;SPAN&gt;A-TEXT)&lt;/SPAN&gt;. What is the syntext I need to make this work? Also the script ends still in the layer command. How can I end at standard prompt?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-LAYER&lt;BR /&gt;N A-TEXT C 4 A-TEXT LT continuous A-TEXT D General_Text A-TEXT&lt;BR /&gt;N A-ANNO-SYMB C 4 A-ANNO-SYMB LT continuous A-ANNO-SYMB D Symbols A-ANNO-SYMB&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2015 15:55:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/script-command-to-end-text-line/m-p/5601541#M332208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-21T15:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: script command to end text line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/script-command-to-end-text-line/m-p/5601603#M332209</link>
      <description>&lt;P&gt;Hi dbarringer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try putting a &amp;lt;return&amp;gt; after every string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attaching the script that works for me. You have to rename it, quitting ".zip".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Giancarlo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2015 16:36:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/script-command-to-end-text-line/m-p/5601603#M332209</guid>
      <dc:creator>gdefilo</dc:creator>
      <dc:date>2015-04-21T16:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: script command to end text line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/script-command-to-end-text-line/m-p/5601626#M332210</link>
      <description>It's hard to see &amp;lt;enter&amp;gt; when you have only blank spaces, so as noted above add another.&lt;BR /&gt;&lt;BR /&gt;It's easiest to write a script code if instead of spaces you used a hard return like you started to then quit, makes extra &amp;lt;enter&amp;gt; appear as a blank line and it's easiest to simply look at it and tell what's going on.&lt;BR /&gt;COMMAND&lt;BR /&gt;SUBOPTION&lt;BR /&gt;SUBOPTION&lt;BR /&gt;                   (&amp;lt;&amp;lt;&amp;lt;&amp;lt;blank line means extra &amp;lt;enter&amp;gt;)&lt;BR /&gt;ANOTHERCOMMAND&lt;BR /&gt;SUBOPTION&lt;BR /&gt;&lt;BR /&gt;(and so on)</description>
      <pubDate>Tue, 21 Apr 2015 16:52:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/script-command-to-end-text-line/m-p/5601626#M332210</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2015-04-21T16:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: script command to end text line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/script-command-to-end-text-line/m-p/5601650#M332211</link>
      <description>&lt;P&gt;Thanks for your reply. I would like to keep the code for a layer all on one line because I am extracting it from an excel file that has all the layers, colors, line types and descriptions. The last excel cell then creates the code that goes into the script. Is there a way to have the script recognize a return without doing a hard return?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2015 17:14:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/script-command-to-end-text-line/m-p/5601650#M332211</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-21T17:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: script command to end text line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/script-command-to-end-text-line/m-p/5601656#M332212</link>
      <description>&lt;P&gt;The zip downloaded with an error. could you reattach.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2015 17:18:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/script-command-to-end-text-line/m-p/5601656#M332212</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-21T17:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: script command to end text line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/script-command-to-end-text-line/m-p/5601788#M332213</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;The zip downloaded with an error. could you reattach.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It's not really a .zip file.&amp;nbsp; They just changed the filetype ending to .zip to be allowed to attach it [I don't think that's necessary with a .txt file as with certain other file types, but it may vary with operating system and browser].&amp;nbsp; If you right-click on it, choose Save As, and change the .zip ending to .txt in Saving it, you should be able to open it.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2015 18:54:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/script-command-to-end-text-line/m-p/5601788#M332213</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2015-04-21T18:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: script command to end text line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/script-command-to-end-text-line/m-p/5601801#M332214</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;.... I would like to keep the code for a layer all on one line .... Is there a way to have the script recognize a return without doing a hard return?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;For the end of the line, try just using two spaces at the end [the second to complete the Layer command].&amp;nbsp; It has the disadvantage [already mentioned] that you can't &lt;EM&gt;see&lt;/EM&gt; that there are two spaces, but if the Layer names work ended with spaces in the other options, then it's not going to read the spaces as part of the Layer name [I believe if you want to use Layer names with spaces in a Script, you need to surround them with double-quotes], so it ought to at least work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I haven't used Descriptions enough [and in this kind of situation not at all] to know whether it will accept a description with spaces regardless.&amp;nbsp; If so, that's your problem -- the Layer name is being read as a continuation of the Description.&amp;nbsp; You could try putting the Description part inside double-quotes -- maybe after that, the following space won't be considered part of it, and it will move on to accept the name of the Layer you want that Description assigned to.&amp;nbsp; But it may be necessary to start that Layer name immediately after the closing double-quote, without a space between them.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2015 19:04:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/script-command-to-end-text-line/m-p/5601801#M332214</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2015-04-21T19:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: script command to end text line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/script-command-to-end-text-line/m-p/5601889#M332215</link>
      <description>&lt;P&gt;Found the solution. Adding&amp;nbsp;&lt;SPAN&gt;\U+000D after description and then the layer name in "" works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-LAYER&lt;BR /&gt;N A-TEXT LT continuous A-TEXT LW 0.35 A-TEXT C 4 A-TEXT D General Text\U+000D"A-TEXT"&lt;BR /&gt;N A-ANNO-SYMB LT continuous A-ANNO-SYMB LW 0.35 A-ANNO-SYMB C 4 A-ANNO-SYMB D MARVY Symbols\U+000D"A-ANNO-SYMB"&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2015 19:57:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/script-command-to-end-text-line/m-p/5601889#M332215</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-21T19:57:31Z</dc:date>
    </item>
  </channel>
</rss>

