See the top rated post in this thread. Click here

Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Auto increment numbers

  1. #11
    Woo! Hoo! my 1st post
    Join Date
    2011-06
    Posts
    1
    Login to Give a bone
    0

    Default Re: Auto increment numbers

    Quote Originally Posted by zoomharis View Post
    Hi Bren,
    Sorry for being late. It took too much time for digging . Put this macro in a button. I think this makes up the auto numbering problem in LT.


    Set the USERI1 system variable to arrange the Starting number. The starting number will always be USERI1+1.

    Hope that helps.
    sir where can i edit the USERI1. do you have a step by step procedure or a tutorial of your solution for the auto-increment of numbers? sorry for the inconvenience for i am only a novice in AtoCad. i just need it for i need it in my work so that i dont have to create and edit manually each number. it will help me save time. thanks. hope you could help me.

  2. #12
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,570
    Login to Give a bone
    0

    Default Re: Auto increment numbers

    Quote Originally Posted by rjjose200513465221512 View Post
    sir where can i edit the USERI1. do you have a step by step procedure or a tutorial of your solution for the auto-increment of numbers? sorry for the inconvenience for i am only a novice in AtoCad. i just need it for i need it in my work so that i dont have to create and edit manually each number. it will help me save time. thanks. hope you could help me.
    Hi, welcome.
    Type -

    setvar USERI1 your start number

  3. #13
    I could stop if I wanted to
    Join Date
    2001-12
    Location
    Dallas, TX
    Posts
    229
    Login to Give a bone
    0

    Default Re: Auto increment numbers

    *^c^c_text;\;;$M=$(+,$(getvar,USERR1),$(getvar,USERR2));setvar;USERR1;$M=$(+,$(getvar,USERR1),$(getvar,USERR2));

  4. #14
    Member
    Join Date
    2011-05
    Posts
    33
    Login to Give a bone
    0

    Default Re: Auto increment numbers

    how could one adapt this to auto-increment a block attribute? I'm dying for something like this... the city where I live needs numbered parking spaces and as the design changes you often lose/gain a space and have to renumber from that space forwards - in some buildings it's 100+ spaces. if I could set a start number and just go click-click-click to bump them all up by one, I'd be in heaven... my parking block has a space with a coule of toggles and an attribute called "NUMBER" for the parking space number

    EDIT: I'm using autocad architecture 2012

  5. #15
    All AUGI, all the time
    Join Date
    2009-01
    Location
    B5
    Posts
    544
    Login to Give a bone
    0

    Default Re: Auto increment numbers

    Since you are using a vertical and not AutoCAD LT you need to be looking in the Programming Forums for Lisp's or other programmatic options.
    There may be a solution there for you.

  6. #16
    Woo! Hoo! my 1st post
    Join Date
    2015-04
    Posts
    1
    Login to Give a bone
    0

    Default Re: Auto increment numbers

    My managers have decided some of our seats only need LT, so I've lost my express tools and a fair few other bits I would imagine...

    I've managed to use the code posted previously to insert text and increment it. Which is nice except my text is already there in most of our dwg templates etc, and really just needs updating....

    I've learnt so far that from:
    Code:
    *^c^c_text;\;;$M=$(+,$(getvar,USERR1),$(getvar,USERR2));setvar;USERR1;$M=$(+,$(getvar,USERR1),$(getvar,USERR2));
    * = repeat until "ESC".
    ^c^c = cancel any existing commands.
    getvar,USERRx = get previously stored variable from the location USERR1 or USERR2

    ..and I could really do with some verbose explanation of the other characters if any of you nice people could spare me some time.
    I'm looking to maybe modify it to overwrite the existing value, rather that create from scratch.
    Les

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Auto Increment - Caddons
    By irneb in forum AutoLISP
    Replies: 6
    Last Post: 2011-07-22, 12:49 AM
  2. Replies: 2
    Last Post: 2007-12-17, 09:10 PM
  3. Auto Increment Numbering for AutoCAD LT.
    By zoomharis in forum AutoCAD Tips & Tricks
    Replies: 0
    Last Post: 2007-08-21, 05:12 AM
  4. Increment Text Numbers
    By larry.80915 in forum AutoCAD General
    Replies: 2
    Last Post: 2005-01-12, 05:39 PM
  5. Grid lines with auto numbers?
    By wpeacock in forum AutoCAD General
    Replies: 5
    Last Post: 2004-06-17, 07:08 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
  •