+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Full Member
    Using
    AutoCAD 2006
    Join Date
    Jun 2006
    Posts
    39

    Default Change group of text numbers

    Registered forum members do not see this ad.

    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

  2. #2
    Luminous Being dbroada's Avatar
    Computer Details
    dbroada's Computer Details
    Operating System:
    Windows 7 Professional
    Computer:
    Dell
    CPU:
    Intel Xeon E5-1603@2,80GHz
    RAM:
    4GB
    Graphics:
    NVIDA Quadro K600
    Monitor:
    DELL 23" & SAMSUNG 21"
    Discipline
    Electro/Mech
    dbroada's Discipline Details
    Occupation
    Design Engineer
    Discipline
    Electro/Mech
    Using
    Electrical 2013
    Join Date
    Nov 2005
    Location
    Sussex, UK
    Posts
    5,507

    Default

    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.........)
    "That's it. It's one thing for a ghost to terrorize my children, but quite another for him to play my Theremin." Homer Simpson
    "Everything in drafting is logical. Except what isn’t." - Gavin Guile. (from the Lightbringer series of books by Brent Weeks)

    Dave

  3. #3
    Forum Deity
    Using
    Civil 3D 2008
    Join Date
    Sep 2006
    Location
    Pittsburgh, PA, USA
    Posts
    3,581

    Default

    Try here, might be useful for you:
    http://www.theswamp.org/index.php?topic=518.0

  4. #4
    Full Member
    Using
    AutoCAD 2006
    Join Date
    Jun 2006
    Posts
    39

    Default

    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

  5. #5
    Full Member
    Using
    AutoCAD 2006
    Join Date
    Jun 2006
    Posts
    39

    Default

    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)

  6. #6
    Full Member
    Using
    AutoCAD 2006
    Join Date
    Jun 2006
    Posts
    39

    Embarrassed

    Registered forum members do not see this ad.

    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.

Similar Threads

  1. Change text contents using VB
    By DDonnachie in forum AutoLISP, Visual LISP & DCL
    Replies: 8
    Last Post: 16th Aug 2009, 11:54 pm
  2. Export Text (line numbers from P&IDs)
    By mikeadams in forum AutoCAD General
    Replies: 2
    Last Post: 18th Jan 2007, 11:14 am
  3. Routines to change text heights at once?
    By muck in forum AutoLISP, Visual LISP & DCL
    Replies: 3
    Last Post: 12th Jan 2007, 09:58 am
  4. Change Standard Text for ever!
    By fahim108 in forum AutoCAD General
    Replies: 4
    Last Post: 22nd Jul 2006, 08:42 pm
  5. adding numbers to numbers
    By philk in forum AutoLISP, Visual LISP & DCL
    Replies: 4
    Last Post: 23rd Feb 2006, 05:45 pm

Bookmarks

Posting Permissions

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