Results 1 to 2 of 2

Thread: Automatic incrementing of numbers in LT

  1. #1
    Join Date
    Jan 2008
    Location
    English Lake District
    Posts
    2,810

    Automatic incrementing of numbers in LT

    This comes up often, Ive asked it myself before.

    I have found this on another forum.

    Put the following string on a user defined menu button.

    *^C^C_text;\;;$M=$(+,$(getvar,USERI1),1);setvar;US ERI1;$M=$(+,$(getvar,USERI1),1);

    This puts a new text with an incremented value on the drawing with each click of your mouse.

    You can also use SETVAR to change USERI1 to 1 below whatever initial value you want.

    Many thanks to ZOOMHARIS on the AUGI forum.
    Last edited by NukeCad; 10-10-2017 at 11:41 PM.
    Im intelligent enough to know that I dont know everything; but I'll tell you all about it anyway.

  2. #2
    Join Date
    Jan 2008
    Location
    English Lake District
    Posts
    2,810

    Even Better

    AND this one increments text that is already on the drawing


    *^C^C_.Change;\;;;;;;$M=$(getvar,USERI1);_.Setvar; USERI1;$(+,1 ,$(getvar,USERI1))

    This time though set USERI1 to the value you want to start with.

    Thanks to MIKE.PERRY the AUGI director
    Im intelligent enough to know that I dont know everything; but I'll tell you all about it anyway.

Posting Permissions

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