<?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: Looking For An Automatic Numbering Solution in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/looking-for-an-automatic-numbering-solution/m-p/10453004#M75085</link>
    <description>&lt;P&gt;Thank you very much this solution looks like it has a lot of potential.&lt;/P&gt;&lt;P&gt;I'll let you know how it goes.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jul 2021 14:36:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-07-08T14:36:32Z</dc:date>
    <item>
      <title>Looking For An Automatic Numbering Solution</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/looking-for-an-automatic-numbering-solution/m-p/10438934#M75081</link>
      <description>&lt;P&gt;Hello everyone and thank you in advance for any help you can offer.&amp;nbsp; I'm trying to find the best solution within the AutoCAD ecosystem (vanilla, Civil, Electrical, etc.) for an automated number system to label data drops on low voltage plans.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would need to be something were I could define the syntax, number places, ranges, alphanumeric and when it needs to jump up to the next character etc.&amp;nbsp; Different&amp;nbsp; clients request different numbering systems so it needs to be configurable \ extensible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example PT.PT1.A:9-10 I would need to automatically increment the #-# range counting up as I place labels and be able to give it a maximum (like 24 or 48 for patch panel sizes) and tell it to increment up the A charater alphabetically and start the next #-# range.&lt;/P&gt;&lt;P&gt;I feel this might need a custom scripted solution to automate but I'm hoping there's some tool out there I'm just not familiar with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 15:12:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/looking-for-an-automatic-numbering-solution/m-p/10438934#M75081</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-02T15:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Looking For An Automatic Numbering Solution</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/looking-for-an-automatic-numbering-solution/m-p/10439249#M75082</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use Incremental numbering suite lisp to do what you are asking for. You can download it from &lt;A href="http://www.lee-mac.com/numinc.html" target="_blank" rel="noopener"&gt;here.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Just download the .lsp file from the link given and then drag and drop that file into AutoCAD and then type in the command "NUMINC"&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 17:01:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/looking-for-an-automatic-numbering-solution/m-p/10439249#M75082</guid>
      <dc:creator>vinodkl</dc:creator>
      <dc:date>2021-07-02T17:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Looking For An Automatic Numbering Solution</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/looking-for-an-automatic-numbering-solution/m-p/10441605#M75083</link>
      <description>&lt;P&gt;I remember a similar question has been asked a few months before by others. But I couldn't find the post.&lt;/P&gt;
&lt;P&gt;Previous question is simpler than your one. It only has a "A-1" format.&lt;/P&gt;
&lt;P&gt;Here attached 2 formulas which can be used in &lt;U&gt;&lt;A href="https://sites.google.com/site/cadkits/home/altext" target="_blank" rel="noopener"&gt;ALTEXT&lt;/A&gt;&lt;/U&gt;.&lt;/P&gt;
&lt;P&gt;Instead of adding text in "PT.PT1.A:24-48" format directly, my solution is adding simple numbers&amp;nbsp;without prefix in a sequence from 1 with some autonumbering tool, such as &lt;U&gt;&lt;A href="https://sites.google.com/site/cadkits/home/innb" target="_blank" rel="noopener"&gt;INNB&lt;/A&gt;&lt;/U&gt;, then convert these numbers into A:24-48 format (with the first formula), then add Prefix such as "PT.PT1." to all these texts (also with ALTEXT)&lt;/P&gt;
&lt;P&gt;The benefit of this workflow is, in case of error and you need add or delete a number in the sequence, you can easily convert them back to the original numbers (with the second formula), then add or minus numbers in a certain number range (also with ALTEXT), and then convert these numbers back to "A:24-48" format.&lt;/P&gt;
&lt;P&gt;Step 1, Add numbers.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="altext2-1.PNG" style="width: 368px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/937364i3088E53BAD629FF2/image-dimensions/368x185?v=v2" width="368" height="185" role="button" title="altext2-1.PNG" alt="altext2-1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Step 2, Use&amp;nbsp;&lt;U&gt;&lt;A href="https://sites.google.com/site/cadkits/home/altext" target="_blank" rel="noopener"&gt;ALTEXT&lt;/A&gt;&lt;/U&gt;&amp;nbsp;and load Formula 1.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="formula.PNG" style="width: 323px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/937361i881BEF91C04D1008/image-size/large?v=v2&amp;amp;px=999" role="button" title="formula.PNG" alt="formula.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Step 3, Convert numbers to "A:24-48" format.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="altext2-2.PNG" style="width: 374px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/937365i815A955619DA7C81/image-dimensions/374x169?v=v2" width="374" height="169" role="button" title="altext2-2.PNG" alt="altext2-2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Step 4, Add Prefix "PT.PT1."&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="altext2-3.PNG" style="width: 329px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/937366i5A31C65CBD791A5B/image-size/large?v=v2&amp;amp;px=999" role="button" title="altext2-3.PNG" alt="altext2-3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Step 5, the result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="altext2-4.PNG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/937368i650F69071D9E46B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="altext2-4.PNG" alt="altext2-4.PNG" /&gt;&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jul 2021 03:13:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/looking-for-an-automatic-numbering-solution/m-p/10441605#M75083</guid>
      <dc:creator>3wood</dc:creator>
      <dc:date>2021-07-04T03:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Looking For An Automatic Numbering Solution</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/looking-for-an-automatic-numbering-solution/m-p/10441632#M75084</link>
      <description>&lt;P&gt;I remember a similar question has been asked a few months before by others. But I couldn't find the post.&lt;/P&gt;
&lt;P&gt;Previous question is simpler than your one. It only has a "A-24" format.&lt;/P&gt;
&lt;P&gt;Here attached 2 formulas which can be used in &lt;U&gt;&lt;A href="https://sites.google.com/site/cadkits/home/altext" target="_blank" rel="noopener"&gt;ALTEXT&lt;/A&gt;&lt;/U&gt;. (for TEXT objects only)&lt;/P&gt;
&lt;P&gt;Instead of adding text in "PT.PT1.A:24-48" format directly, my solution is adding simple numbers&amp;nbsp;without prefix in a sequence from 1 with some autonumbering tool first, such as &lt;U&gt;&lt;A href="https://sites.google.com/site/cadkits/home/innb" target="_blank" rel="noopener"&gt;INNB&lt;/A&gt;&lt;/U&gt;, then convert these numbers into A:24-48 format (with the first formula), then add Prefix such as "PT.PT1." to all these texts (also with ALTEXT)&lt;/P&gt;
&lt;P&gt;The benefit of this workflow is, in case of error and you need add or delete a number in the sequence, you can easily convert them back to the original numbers (with the second formula), then add or minus numbers in a certain number range (also with ALTEXT), and then convert these numbers back to "A:24-48" format.&lt;/P&gt;
&lt;P&gt;Step 1.1, Add numbers.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="altext2-1.PNG" style="width: 368px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/937364i3088E53BAD629FF2/image-dimensions/368x185?v=v2" width="368" height="185" role="button" title="altext2-1.PNG" alt="altext2-1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Step 1.2, Use&amp;nbsp;&lt;U&gt;&lt;A href="https://sites.google.com/site/cadkits/home/altext" target="_blank" rel="noopener"&gt;ALTEXT&lt;/A&gt;&lt;/U&gt;&amp;nbsp;and load Formula 1.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="formula.PNG" style="width: 323px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/937361i881BEF91C04D1008/image-size/large?v=v2&amp;amp;px=999" role="button" title="formula.PNG" alt="formula.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Step 1.3, Convert numbers to "A:24-48" format.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="altext2-2.PNG" style="width: 374px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/937365i815A955619DA7C81/image-dimensions/374x169?v=v2" width="374" height="169" role="button" title="altext2-2.PNG" alt="altext2-2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Step 1.4, Add Prefix "PT.PT1."&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="altext2-3.PNG" style="width: 329px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/937366i5A31C65CBD791A5B/image-size/large?v=v2&amp;amp;px=999" role="button" title="altext2-3.PNG" alt="altext2-3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Step 1.5, the result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="altext2-4.PNG" style="width: 375px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/937368i650F69071D9E46B0/image-dimensions/375x124?v=v2" width="375" height="124" role="button" title="altext2-4.PNG" alt="altext2-4.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, if there is an error in the sequence, for example, need add 1 to all numbers after A:24-48, ie. A:24-48 becomes B:1-1, B:1-1 becomes B:1-2, etc. We can use the second formula to convert texts into original numbers first, then use steps above to convert numbers into "A-24-48" format again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 2.1, remove all prefix with FIND command&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="altext2-5.PNG" style="width: 614px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/937369i78AA6326D4DE0005/image-size/large?v=v2&amp;amp;px=999" role="button" title="altext2-5.PNG" alt="altext2-5.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Step 2.2, the result of Step 2.1:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="altext2-2.PNG" style="width: 374px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/937365i815A955619DA7C81/image-dimensions/374x169?v=v2" width="374" height="169" role="button" title="altext2-2.PNG" alt="altext2-2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Step 2.3,&amp;nbsp;Use&amp;nbsp;&lt;U&gt;&lt;A href="https://sites.google.com/site/cadkits/home/altext" target="_blank" rel="noopener"&gt;ALTEXT&lt;/A&gt;&lt;/U&gt;&amp;nbsp;and load Formula 2 to convert these texts into original numbers.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="altext2-1.PNG" style="width: 368px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/937364i3088E53BAD629FF2/image-dimensions/368x185?v=v2" width="368" height="185" role="button" title="altext2-1.PNG" alt="altext2-1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Step 2.4, Use ALTEXT to add 1 to all numbers ≧ 1152.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="altext2-6.PNG" style="width: 325px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/937370iF22DECE8F06FFDC3/image-size/large?v=v2&amp;amp;px=999" role="button" title="altext2-6.PNG" alt="altext2-6.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Step 2.5, the result of Step 2.4:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="altext2-7.PNG" style="width: 363px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/937371iABF3012488626C25/image-dimensions/363x179?v=v2" width="363" height="179" role="button" title="altext2-7.PNG" alt="altext2-7.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then repeat Step 1.2 to Step 1.5 to convert the numbers into "PT.PT1.A:24-48" format.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="altext2-8.PNG" style="width: 358px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/937372i9429A5C2D1EA5AB4/image-dimensions/358x116?v=v2" width="358" height="116" role="button" title="altext2-8.PNG" alt="altext2-8.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attachments:&lt;/P&gt;
&lt;P&gt;Formula 1, Convert numbers into "A:24-48" format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;;;; This is an example formula for ALTEXT.vlx
;;; Convert selected numbers into mixed alphbat / numbers such as "A-1-1", last digit in a term of 48, first digit in a term of 24
;;; Revise corresponsive variables to suit
(defun ALTEXT_FORMULA (/ number TERM1 TERM2 CONNECTOR1 CONNECTOR2 PartA PartB PartC)
  (setq TERM1 48 	;Changes it if the circulation is not 48
	TERM2 24 	;Changes it if the circulation is not 24
	CONNECTOR1 "-"	;Add space in front or after the dash as you need, or change it to any other character you need put in between the letter and number
	CONNECTOR2 ":"	;
        )
  (setq number (atoi ALTEXT_STR_ORG))
  (setq PartA (fix (rem number TERM1)) 
	PartB (1+ (fix (rem (/ (1- number) TERM1) TERM2)))
	PartC (chr (+ (fix (/ (1- number) (* TERM1 TERM2))) 65))	
	)
  (strcat PartC CONNECTOR2 (itoa PartB) CONNECTOR1 (itoa (if (= PartA 0) TERM1 PartA)))
  )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Formula 2, Convert "A:24-48" format texts back into numbers:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;;;; This is an example formula for ALTEXT.vlx
;;; You can use AutoCAD command FIND to remove prefix and suffix first.
;;; It reverts mixed alphbat / numbers such as "A-1-1" back to its original number.
;;; Revise corresponsive variables TERM &amp;amp; CONNECTOR to suit.

(defun ALTEXT_FORMULA (/ TERM1 TERM2 CONNECTOR1 CONNECTOR2 PartA PartB PartC t1 p1 p2 L1)
  (setq TERM1 48 	;Changes it if the circulation is not 48
	TERM2 24 	;Changes it if the circulation is not 24
	CONNECTOR1 "-"	;Add space in front or after the dash as you need, or change it to any other character you need put in between the letter and number
	CONNECTOR2 ":"	;
        )
  (setq t1 (substr ALTEXT_STR_ORG (1+ (strlen PREFIX)))) 
  (setq p2 (vl-string-search CONNECTOR2 t1))
  (setq p1 (vl-string-search CONNECTOR1 t1 (+ p2 (strlen CONNECTOR2)))) 
  (setq PartA (substr t1 (+ p1 (strlen CONNECTOR1) 1)) 
	PartB (substr t1 (setq L1 (+ P2 (strlen CONNECTOR2) 1)) (1+ (- P1 L1))) 
	PartC (substr t1 1 1)
	)
  (if (and PartA PartB PartC)
    (itoa (+ (* (- (ascii PartC) 65) TERM1 TERM2) (* (1- (atoi PartB)) TERM1) (atoi PartA)))) 
  )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jul 2021 03:47:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/looking-for-an-automatic-numbering-solution/m-p/10441632#M75084</guid>
      <dc:creator>3wood</dc:creator>
      <dc:date>2021-07-04T03:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Looking For An Automatic Numbering Solution</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/looking-for-an-automatic-numbering-solution/m-p/10453004#M75085</link>
      <description>&lt;P&gt;Thank you very much this solution looks like it has a lot of potential.&lt;/P&gt;&lt;P&gt;I'll let you know how it goes.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 14:36:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/looking-for-an-automatic-numbering-solution/m-p/10453004#M75085</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-08T14:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Looking For An Automatic Numbering Solution</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/looking-for-an-automatic-numbering-solution/m-p/10453017#M75086</link>
      <description>&lt;P&gt;Thank you for laying things out in such detail.&amp;nbsp; I will try that and get back to you.&amp;nbsp; Sorry I took a while to back to you guys.&amp;nbsp; I have a pile of deadlines on me at work.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 14:40:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/looking-for-an-automatic-numbering-solution/m-p/10453017#M75086</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-08T14:40:25Z</dc:date>
    </item>
  </channel>
</rss>

