<?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: Attribute continuous sequential numbering in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/attribute-continuous-sequential-numbering/m-p/8325293#M98474</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is not LISP, but the &lt;A href="https://apps.autodesk.com/ACD/en/Detail/Index?id=8051485828049059617&amp;amp;appLang=en&amp;amp;os=Win32_64" target="_blank"&gt;Increment&lt;/A&gt; plugin does what you need and much more...&lt;/P&gt;</description>
    <pubDate>Wed, 10 Oct 2018 15:35:43 GMT</pubDate>
    <dc:creator>_gile</dc:creator>
    <dc:date>2018-10-10T15:35:43Z</dc:date>
    <item>
      <title>Attribute continuous sequential numbering</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/attribute-continuous-sequential-numbering/m-p/8324931#M98473</link>
      <description>&lt;P&gt;I need&amp;nbsp;a lisp that can make sequential numbering for attributes as follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 - allows me to input a prefix and replace the existing text in the attribute or the lisp will not alter the existing text in the attribute, instead it will only attach the number beside the existing text.&lt;/P&gt;&lt;P&gt;Example, I have existing text "D0", the sequence will become D01, D02,... and so on. or It will remove the existing "D0" but will provide me an option to input a prefix D0 before the sequence value.&lt;/P&gt;&lt;P&gt;2 - It allows me to choose the value to begin the sequence with, so that I can continue the sequence from the last value where I&amp;nbsp;stopped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need this lisp in tagging Door numbers in our current project.. I have 400 doors to&amp;nbsp;put&amp;nbsp;door tags, from D01 - D0400.&amp;nbsp;&lt;/P&gt;&lt;P&gt;D0 - Doors in Ground floor. D01 means door number 1 in the Ground floor...&lt;/P&gt;&lt;P&gt;D1 - Doors in First floor. D150 means door number 50 in the first floor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be appreciated, Thank you very much... &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 13:32:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/attribute-continuous-sequential-numbering/m-p/8324931#M98473</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-10T13:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute continuous sequential numbering</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/attribute-continuous-sequential-numbering/m-p/8325293#M98474</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is not LISP, but the &lt;A href="https://apps.autodesk.com/ACD/en/Detail/Index?id=8051485828049059617&amp;amp;appLang=en&amp;amp;os=Win32_64" target="_blank"&gt;Increment&lt;/A&gt; plugin does what you need and much more...&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 15:35:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/attribute-continuous-sequential-numbering/m-p/8325293#M98474</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2018-10-10T15:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute continuous sequential numbering</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/attribute-continuous-sequential-numbering/m-p/8325320#M98475</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this.......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While you want to change the value of "Attribute"...... it must be a&lt;STRONG&gt; Block&lt;/STRONG&gt; with &lt;STRONG&gt;Tag,&amp;nbsp;&lt;/STRONG&gt;so you have to enter that as a input for once....... As per your requirement I take the increment value as 1.......Otherwise change it here (highlighted in blue) "(setq Inc_Num (+ Inc_Num &lt;FONT color="#3366FF"&gt;1&lt;/FONT&gt;))" as your requirement&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun C:Ch_Att_Val (/ Inc_Num B_Name Att_Name Pre)&lt;BR /&gt;(vl-load-com)&lt;BR /&gt;(setq B_Name (getstring "\nInput Block Name: "))&lt;BR /&gt;(setq Att_Name (getstring "\nInput Tag Name: "))&lt;BR /&gt;(setq Pre (getstring "\nInput Prefix: "))&lt;BR /&gt;(setq Inc_Num (getint "\nInput Starting Number: "))&lt;BR /&gt;(while (setq pnt (getpoint "\nSpecify Insertion Point: "))&lt;BR /&gt;(progn&lt;BR /&gt;(setq New_Inp (strcat Pre (rtos Inc_Num 2 0)))&lt;BR /&gt;(vl-cmdf "._-insert" B_Name pnt "" "" "")&lt;BR /&gt;(setq BLK (entget (entlast)))&lt;BR /&gt;(setq Data (cdr (assoc -1 BLK)))&lt;BR /&gt;(setq obj (vlax-ename-&amp;gt;vla-object Data))&lt;BR /&gt;(foreach att (vlax-invoke Obj 'GetAttributes)&lt;BR /&gt;(if (= (vla-get-Tagstring att) Att_Name)&lt;BR /&gt;(vla-put-Textstring att New_Inp)&lt;BR /&gt;);if&lt;BR /&gt;);foreach&lt;BR /&gt;(setq Inc_Num (+ Inc_Num 1))&lt;BR /&gt;);progn&lt;BR /&gt;)&lt;BR /&gt;(princ)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sorry I get confused with your requirement so I post this................&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 16:05:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/attribute-continuous-sequential-numbering/m-p/8325320#M98475</guid>
      <dc:creator>dbhunia</dc:creator>
      <dc:date>2018-10-10T16:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute continuous sequential numbering</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/attribute-continuous-sequential-numbering/m-p/8325525#M98476</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this.......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While you want to change the value of "Attribute"...... it must be a&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Block&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Tag&lt;/STRONG&gt;&amp;nbsp;(may be multiple Tag),&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;so you have to enter&amp;nbsp;the&amp;nbsp;&lt;STRONG&gt;Tag Name&lt;/STRONG&gt;&amp;nbsp;(its case sensitive) and&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;to choose the Numeric value to begin the sequence&lt;/STRONG&gt; as input for once&lt;/SPAN&gt;.......then you have to select repeatedly the&amp;nbsp;Attributes/Blocks which you want to change the values......&lt;/P&gt;&lt;P&gt;As per your requirement I take the increment value as 1.......Otherwise change it here (highlighted in blue) "(setq Inc_Num (+ Inc_Num&lt;FONT color="#0000FF"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;1&lt;/FONT&gt;))" as your requirement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun C:Ch_Att_Val (/ Inc_Num Att_Name Pre)&lt;BR /&gt;(vl-load-com)&lt;BR /&gt;(setq Att_Name (getstring "\nInput Tag Name: "))&lt;BR /&gt;(setq Inc_Num (getint "\nInput Starting Number: "))&lt;BR /&gt;(while (setq BLK (entget (car(entsel "\nSelect Attribute/Block: "))))&lt;BR /&gt;(progn&lt;BR /&gt;(setq Data (cdr (assoc -1 BLK)))&lt;BR /&gt;(setq obj (vlax-ename-&amp;gt;vla-object Data))&lt;BR /&gt;(foreach att (vlax-invoke Obj 'GetAttributes)&lt;BR /&gt;(if (= (vla-get-Tagstring att) Att_Name)&lt;BR /&gt;(progn&lt;BR /&gt;(setq Pre (vla-get-Textstring att))&lt;BR /&gt;(setq New_Inp (strcat Pre (rtos Inc_Num 2 0)))&lt;BR /&gt;(vla-put-Textstring att New_Inp)&lt;BR /&gt;)&lt;BR /&gt;);if&lt;BR /&gt;);foreach&lt;BR /&gt;(setq Inc_Num (+ Inc_Num 1))&lt;BR /&gt;);progn&lt;BR /&gt;)&lt;BR /&gt;(princ)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(It has been tested in "AutoCAD 2007", hope fully it will work in latest version.)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 17:20:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/attribute-continuous-sequential-numbering/m-p/8325525#M98476</guid>
      <dc:creator>dbhunia</dc:creator>
      <dc:date>2018-10-10T17:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute continuous sequential numbering</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/attribute-continuous-sequential-numbering/m-p/8325575#M98477</link>
      <description>&lt;P&gt;I have attached a Lee Mac lisp that I found somewhere along the way for this specific thing. I use the replace function within the lisp that allows me to select the attribute that I want to replace. The way I use it is to have "#" in the prefix spot, and the number to start with in the middle spot. This will change the attributes to "#1, #2, #3...etc." This is a very good tool, and with a little practice can be used for many different things within cad, from numbering to a find and replace type function.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 17:21:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/attribute-continuous-sequential-numbering/m-p/8325575#M98477</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-10T17:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute continuous sequential numbering</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/attribute-continuous-sequential-numbering/m-p/8326624#M98478</link>
      <description>&lt;P&gt;It works. Thank you very much.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 04:40:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/attribute-continuous-sequential-numbering/m-p/8326624#M98478</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-11T04:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute continuous sequential numbering</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/attribute-continuous-sequential-numbering/m-p/8326633#M98479</link>
      <description>&lt;P&gt;Thanks for this. I think this is useful but&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5869979"&gt;@dbhunia&lt;/a&gt;'s lisp is just what I've been looking for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will save this for future need. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 04:49:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/attribute-continuous-sequential-numbering/m-p/8326633#M98479</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-11T04:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute continuous sequential numbering</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/attribute-continuous-sequential-numbering/m-p/10037972#M98480</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can we use this tool?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 09:23:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/attribute-continuous-sequential-numbering/m-p/10037972#M98480</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-28T09:23:08Z</dc:date>
    </item>
  </channel>
</rss>

