<?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: Sequential numbering with prefix in AutoCAD LT Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-lt-forum/sequential-numbering-with-prefix/m-p/5646202#M70407</link>
    <description>&lt;P&gt;As pendean said the setvar, references existing variables in Autocad LT, but LT only has a very limited number of variables that you can use (10 of them) for this sort of thing, and you cannot create your own variables, but these can only be used to store numbers (USERR1-5 real &amp;amp; USERI1-5 integer), the setenv works in a similar way and you can create as many as you need, so you have to use setenv for text values, in theory you could use these for numbers as well, but these stay permanently in the windows registry, so most people avoid cluttering up the registry in that way, so yes both could have used env but not var&lt;/P&gt;</description>
    <pubDate>Thu, 21 May 2015 11:08:10 GMT</pubDate>
    <dc:creator>steven-g</dc:creator>
    <dc:date>2015-05-21T11:08:10Z</dc:date>
    <item>
      <title>Sequential numbering with prefix</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/sequential-numbering-with-prefix/m-p/5640001#M70401</link>
      <description>&lt;P&gt;I'm trying to add numbering to my drawing with a prefix followed by sequential numbers, for example: E03.01. I've searched the forums here and found this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://forums.autodesk.com/t5/autocad-lt-general-discussion/adding-numbers-sequentially/td-p/1155787"&gt;http://forums.autodesk.com/t5/autocad-lt-general-discussion/adding-numbers-sequentially/td-p/1155787&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not pretty but it works on AutoCAD LT2005 don't know about other versions cos deisel syntax has been changable but:&lt;BR /&gt;&lt;BR /&gt;Stick this on a user defined button to set a prefix and number to start at:&lt;BR /&gt;&lt;BR /&gt;^C^Csetenv PREFIX \; setvar USERI1;&lt;BR /&gt;&lt;BR /&gt;And this on another to do the sequential thingy:&lt;BR /&gt;&lt;BR /&gt;*^C^C-text;\;$M=$(getenv,PREFIX)$M=$(getvar,USERI1);setvar;USERI1;$(+,1,$(getvar,USERI1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Setting PREFIX and USERI1 works fine but I can't seem to get the text placement to work properly. It seems to want to run thru the TEXT command and ignore the variable settings. I'm running LT 2014. Any help at all would be greatly appreciated, thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2015 15:06:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/sequential-numbering-with-prefix/m-p/5640001#M70401</guid>
      <dc:creator>accuratedd</dc:creator>
      <dc:date>2015-05-18T15:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential numbering with prefix</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/sequential-numbering-with-prefix/m-p/5640283#M70402</link>
      <description>Your macro ignores the angle prompt (and maybe even the text size) that -TEXT command requires perhaps?&lt;BR /&gt;Plus USERI1 doesn't allow periods here, no 30.01 but 3001 is OK. Not sure how that used to work in 2005, that was ages ago &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Mon, 18 May 2015 17:44:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/sequential-numbering-with-prefix/m-p/5640283#M70402</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2015-05-18T17:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential numbering with prefix</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/sequential-numbering-with-prefix/m-p/5640355#M70403</link>
      <description>&lt;P&gt;Dean,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You're right, the period and prompts were messing it up. I corrected both and added justification. If anyone's interested in it, here's the current version:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Preset a prefix and number to start from:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;^C^Csetenv PREFIX \; setvar USERI1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sequential numbering:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*^C^C-text;J;M;\;;$M=$(getenv,PREFIX)$M=$(getvar,USERI1);setvar;USERI1;$(+,1,$(getvar,USERI1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script uses current prompt values - text height, rotation, etc. Mine are preset in my templates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help Dean and thanks to the original poster Root.&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2015 18:33:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/sequential-numbering-with-prefix/m-p/5640355#M70403</guid>
      <dc:creator>accuratedd</dc:creator>
      <dc:date>2015-05-18T18:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential numbering with prefix</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/sequential-numbering-with-prefix/m-p/5642948#M70404</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;why is the PREFIX "env" and the USERI1 "var"?&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2015 08:27:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/sequential-numbering-with-prefix/m-p/5642948#M70404</guid>
      <dc:creator>Imui</dc:creator>
      <dc:date>2015-05-20T08:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential numbering with prefix</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/sequential-numbering-with-prefix/m-p/5643120#M70405</link>
      <description>SETVAR calls a variable already in AutoCAD LT.&lt;BR /&gt;SETENV creates a custom "variable" outside of LT in your Windows Registry: it's a great way to create unique "variables" tailored to you and your exact needs without waiting for Autodesk to create it in the program.</description>
      <pubDate>Wed, 20 May 2015 11:09:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/sequential-numbering-with-prefix/m-p/5643120#M70405</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2015-05-20T11:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential numbering with prefix</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/sequential-numbering-with-prefix/m-p/5646154#M70406</link>
      <description>Sorry, i was not clear enough.&lt;BR /&gt;I din not ask what they are, i asked why.&lt;BR /&gt;Is there a reason why they cant be both env or var?&lt;BR /&gt;Sorry in advance if my question is stupid.</description>
      <pubDate>Thu, 21 May 2015 09:58:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/sequential-numbering-with-prefix/m-p/5646154#M70406</guid>
      <dc:creator>Imui</dc:creator>
      <dc:date>2015-05-21T09:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential numbering with prefix</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/sequential-numbering-with-prefix/m-p/5646202#M70407</link>
      <description>&lt;P&gt;As pendean said the setvar, references existing variables in Autocad LT, but LT only has a very limited number of variables that you can use (10 of them) for this sort of thing, and you cannot create your own variables, but these can only be used to store numbers (USERR1-5 real &amp;amp; USERI1-5 integer), the setenv works in a similar way and you can create as many as you need, so you have to use setenv for text values, in theory you could use these for numbers as well, but these stay permanently in the windows registry, so most people avoid cluttering up the registry in that way, so yes both could have used env but not var&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2015 11:08:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/sequential-numbering-with-prefix/m-p/5646202#M70407</guid>
      <dc:creator>steven-g</dc:creator>
      <dc:date>2015-05-21T11:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential numbering with prefix</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/sequential-numbering-with-prefix/m-p/5646212#M70408</link>
      <description>Thank you for taking the time and explaining</description>
      <pubDate>Thu, 21 May 2015 11:11:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/sequential-numbering-with-prefix/m-p/5646212#M70408</guid>
      <dc:creator>Imui</dc:creator>
      <dc:date>2015-05-21T11:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential numbering with prefix</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/sequential-numbering-with-prefix/m-p/7712453#M70409</link>
      <description>&lt;P&gt;This is the closest solution I've found......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;*^C^C-text;J;M;\;;$M=$(getenv,PREFIX)$M=$(getvar,USERI1);setvar;USERI1;$(+,1,$(getvar,USERI1))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, I always get a '1' as a prefix and it doesn't seem to have a reset.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 11:45:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/sequential-numbering-with-prefix/m-p/7712453#M70409</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-23T11:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential numbering with prefix</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/sequential-numbering-with-prefix/m-p/7712580#M70410</link>
      <description>&lt;P&gt;........... I've been messing about and have got it to work like this.......&lt;/P&gt;&lt;P&gt;removed this from the macro......(getenv,PREFIX)$M=$......&lt;/P&gt;&lt;P&gt;You have to set text values first and then manually reset SETVAR value&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 12:33:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/sequential-numbering-with-prefix/m-p/7712580#M70410</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-23T12:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential numbering with prefix</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/sequential-numbering-with-prefix/m-p/8086069#M70411</link>
      <description>&lt;P&gt;So what was the final code for the 2 macros?&amp;nbsp; I got lost.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would love to put a&amp;nbsp;prefex in front of a sequential numbering input.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 17:28:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/sequential-numbering-with-prefix/m-p/8086069#M70411</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-22T17:28:47Z</dc:date>
    </item>
  </channel>
</rss>

