See the top rated post in this thread. Click here

Results 1 to 1 of 1

Thread: Auto Increment Numbering for AutoCAD LT.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    All AUGI, all the time zoomharis's Avatar
    Join Date
    2005-02
    Location
    Abu Dhabi (Native-India)
    Posts
    506
    Login to Give a bone
    2

    Default Auto Increment Numbering for AutoCAD LT.

    Due to the limitation of programming in AutoCAD LT, it's really painful automating tasks over there. As an outcome of this thread, here is a tricky macro to automate the process of increment numbering in AutoCAD LT.
    *^c^c_text;\;;$M=$(+,$(getvar,USERR1),$(getvar,USERR2));setvar;USERR1;$M=$(+,$(getvar,USERR1),$(getvar,USERR2));
    Configure the macro in a button (or wherever you are comfortable). Click on the button once and click on the required locations continuously to keep the incremented numbers. use USERR1 system variable to set the starting number and USERR2 for the increment.

    For example, suppose you need to start numbering from 1.001 and continue like 1.002,1.003,1.004........, set USERR1 to 1 and USERR2 to .001. This will enable you to do the numbering as stated before.

    The above macro presumes that the text height in the current text style is 0. If you have the habit of assigning specific text height to a text style, better use the following macro.
    *^c^c_text;\;$M=$(+,$(getvar,USERR1),$(getvar,USERR2));setvar;USERR1;$M=$(+,$(getvar,USERR1),$(getvar,USERR2));
    Last edited by zoomharis; 2007-08-21 at 12:05 PM.

Similar Threads

  1. Auto increment numbers
    By tufocjr in forum AutoCAD LT - General
    Replies: 15
    Last Post: 2015-04-29, 12:06 PM
  2. Auto Numbering
    By windowsxp5 in forum AutoLISP
    Replies: 3
    Last Post: 2011-11-11, 10:59 AM
  3. Auto Increment - Caddons
    By irneb in forum AutoLISP
    Replies: 6
    Last Post: 2011-07-22, 12:49 AM
  4. Replies: 2
    Last Post: 2007-12-17, 09:10 PM
  5. AutoCAD 2007 - Start auto numbering in MText from something other than 1
    By Tom.Weinstein.137333 in forum AutoCAD General
    Replies: 7
    Last Post: 2007-06-01, 11:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •