Exchange Forum > AutoLISP and Visual LISP
Looking for a Counter function
Looking for a Counter function

#1

RStiles
Join Date:
09-15-2009
Hi,
 
I'm looking for a LISP routine from Pat McDonald called “Counter”.
It basically changes a sequence of numbers without having to “pick and type” each number to be changed. For example, you have a line of individual numbers that need to be in order (ie. 1, 2, 3,….). All you have to do is set the desired sequence, pick the number to change and it automatically changes as you pick it without having to pick, type, enter, pick, type, enter and so forth.
Thanks in advance for your help.
 
RStiles
Looking for a Counter function

#2

Terry Cadd
Join Date:
09-10-2007
Hi RStiles,
I'm not familar with the Counter function by Pat McDonald. Here is an Increment Counter function that may work for your application. Just type "IC" to run it.
Regards,
Terry

Attachments  IC.lsp  
Looking for a Counter function

#3

RStiles
Join Date:
09-15-2009
Thanks Terry. It is almost the same routine, but will work for what I am needing it for. The lisp routine "counter" from Pat McDonald allows you to add an extention such as CY, SF, +/- to the numbers. Thanks again.
 
Rick
Looking for a Counter function

#4

Terry Cadd
Join Date:
09-10-2007
Rick,
Oh, you mean "ICP", Increment Counter with a Prefix! Just a few extra lines of code.
Regards,
Terry

Attachments  ICP.lsp