TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Anonymous on September 07, 2004, 09:26:07 AM

Title: Incrementing existing text
Post by: Anonymous on September 07, 2004, 09:26:07 AM
Has anyone come across a routine that will take a set of existing text and increment the text at a number you choose. For example, if you have numbers 1 through 10. You want to increment these numbers starting at 2 through 11. You type in the starting number and then pick the existing text and presto you have new incremented text.
Title: Incrementing existing text
Post by: CAB on September 07, 2004, 09:41:15 AM
This will work but you have to select each object.
If I have time today I'll add the ability to select more than one object.

http://theswamp.org/phpBB2/viewtopic.php?t=518&highlight=text+increment


PS, I updated the AddMode to allow selection sets. :)
Title: Incrementing existing text
Post by: Anonymous on September 09, 2004, 08:13:19 AM
try freebie of mathanno from http://www.ikozmos.com
Title: Incrementing existing text
Post by: Mark on September 09, 2004, 09:40:47 AM
I just tried MANNO, here are some of the problems I had with it.
Code: [Select]

DOSLib error: integer argument expected.

Please pick an entity [Valid Type: MTEXT/TEXT/ATTRIB/ATTDEF] <Exit>:


when selecting text such as "12this is text" MANNO does nothing. When selecting text such as "this is text 23" MANNO does nothing. When selecting text such as "12 23 44" MANNO correctly changes the "12" but erases the " 23 44". And why blipmode?

PS. I'm not trying to "bad mouth" this software, just an observation.
Title: Incrementing existing text
Post by: M-dub on September 09, 2004, 09:53:32 AM
Blipmode!?  BLIPMODE!!??
:evil:

Free is always good, but if it doesn't work....:?
Title: Incrementing existing text
Post by: whdjr on September 09, 2004, 02:39:11 PM
The Express Tools has a tool that does just that:  TCOUNT.
Title: Incrementing existing text
Post by: Anonymous on September 10, 2004, 08:32:01 AM
ok, old version mathanno need doslib to run correctly. Our website is now under re-construction, so you can download latest version of mathanno from VLAE toolkit at http://www.caddepot.com. The new version does not need doslib any more.

Mathanno can only processing real digital text string. or you will can not get correct result.

i am not sure what will be the correct result for text string "12 23 24" as ur purpose. Maybe you can try ListQuickFill2005 (same in ToolKit). LQF can duplicate the source text and make math calculation to certain digit in string.