View Full Version : Change group of text numbers
LukeCAD
17th May 2007, 03:47 pm
Hi,
Im sure (hoping) this is really simple, but does any one know how to change a group of text numbers by a chosen amount? I have a CAD drawing with many different values as text eg 45.55 and some that are prefixed with letters eg TH 45.66 however it has been found that all the numbers are out by 10 and thus i need to add 10.00 to each of the numbers to give 55.55 and TH 55.66 in the two examples above.
Many thanks
Luke
dbroada
17th May 2007, 03:59 pm
I have a VBA solution that asks for your number to be added and what position your value is. Once you have set your rules you select the text you require to be modified.
It works for renumbering terminals (what I wrote it for) but I don't think its ideal for you. I can probably modify it to do what you want but lets see if somebody has a more ready solution. If all the prefixes ar 2 letters mine will probably be quite easy to modify but if the number of prefix letters is variable then it won't be. (thinks, or will it? If I just.........)
lpseifert
17th May 2007, 04:21 pm
Try here, might be useful for you:
http://www.theswamp.org/index.php?topic=518.0
LukeCAD
18th May 2007, 08:19 am
thanks guys,
The numbers are all prefixed by either one, two or three characters, then a space then the number, i dont know if that would be really simple for you to adapt yours to but i would really appreciate it if you managed it (of course if it is a long process i can understand you may not have the time)
I tried the link and tried the codes on there but i think they are only for block attributes and dont seem to work on mine.
Luke
LukeCAD
18th May 2007, 08:24 am
actually thats not strictly true, i forgot about the first one i downloaded from that site "txtinc_25" which works well on the 0, 1, and 2 letter prefix but with 3 letters it says type 6 not supported, so very close :O)
LukeCAD
18th May 2007, 08:37 am
errr, no , another fib, sorry guys i must have done sumin wrong, i tried it again and it works a treat, thanks very much, and i have learnt to try 3 times before dismissing something.
Powered by vBulletin™ Version 4.1.2 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.