Author Topic: Decrement Text values by 1  (Read 2143 times)

0 Members and 1 Guest are viewing this topic.

Big G

  • Bull Frog
  • Posts: 415
Decrement Text values by 1
« on: March 22, 2005, 07:51:03 AM »
Thought this was heading the right way but no..

http://www.theswamp.org/phpBB2/viewtopic.php?t=3659&highlight=decrease+numbers

What im asking for...is...

I have a 100 boxes each with a number..i want to remove number 5 and decrement all the other numbers by 1 leaving me 99.

Simple eh?

not for me :(
I thought i seen the light at the end of the tunnel. But it was just someone with a torch bringing me more work.
"You have to accept that somedays youre the pigeon and  somedays youre the statue"

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Decrement Text values by 1
« Reply #1 on: March 22, 2005, 09:13:08 AM »
Can you upload a dwg for use to look at?
TheSwamp.org  (serving the CAD community since 2003)

Big G

  • Bull Frog
  • Posts: 415
Decrement Text values by 1
« Reply #2 on: March 22, 2005, 09:35:36 AM »
should be in the lily pond under me already...called hyperlink.
Just to save me the bother of having to change all the text manually
I thought i seen the light at the end of the tunnel. But it was just someone with a torch bringing me more work.
"You have to accept that somedays youre the pigeon and  somedays youre the statue"

SMadsen

  • Guest
Decrement Text values by 1
« Reply #3 on: March 22, 2005, 10:40:47 AM »
I haven't seen your file but I assume that it is either TEXT or MTEXT you want to change?

Here's a really old one that use a user-defined expression to update any numbers within a string.
It'll show a dialog, where you write the expression and will then ask for objects. In this case, the expression would be (1- x) or (- x 1) in order to decrement by 1 (only one variable, x, is valid).

"Really old" means that it never got finished (what else is new?) and it will blow up if you don't supply a valid lisp expression. It's only provided in case you're in a hurry to get the job done.

danny

  • Guest
Decrement Text values by 1
« Reply #4 on: March 22, 2005, 01:04:40 PM »
Did a search and found this...by CAB
http://www.theswamp.org/phpBB2/viewtopic.php?t=518