Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Renumbering Text

  1. #1
    I could stop if I wanted to
    Join Date
    2001-11
    Posts
    200
    Login to Give a bone
    0

    Default Renumbering Text

    Hi I have just been through all the posts looking afor a solution to my problem with LT (2006) but cannot seem to find a definitive answer.

    I have come across Mike Perry's thread which gave me the following macro

    '*^C^C_.Change;\;;;;;;$M=$(getvar,USERI1);_.Setvar;USERI1;$(+,1 ,$(getvar,USERI1))'

    but this did not seem to work, I havee to admit at this point I just assumed that this would renumber text in the drawing (paper space).

    Basically I want to renumber randomly positioned detail balloons with Mtext within the balloons. These are basically one balloon with a number in it copied to various locations on the drawings and then the numbers have to be changed manually to create a set of numbers increasing incrementally in the correct sequence i.e. 1,2,3,4 etc

    Any help would be appreciated.

    Regards

    Neil Cheshire

  2. #2
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,570
    Login to Give a bone
    0

    Default Re: Renumbering Text

    Quote Originally Posted by neilcheshire View Post
    Hi I have just been through all the posts looking afor a solution to my problem with LT (2006) but cannot seem to find a definitive answer.

    I have come across Mike Perry's thread which gave me the following macro

    '*^C^C_.Change;\;;;;;;$M=$(getvar,USERI1);_.Setvar;USERI1;$(+,1 ,$(getvar,USERI1))'

    but this did not seem to work, I havee to admit at this point I just assumed that this would renumber text in the drawing (paper space).

    Basically I want to renumber randomly positioned detail balloons with Mtext within the balloons. These are basically one balloon with a number in it copied to various locations on the drawings and then the numbers have to be changed manually to create a set of numbers increasing incrementally in the correct sequence i.e. 1,2,3,4 etc

    Any help would be appreciated.

    Regards

    Neil Cheshire
    Note the space after the "1". I think it should be removed.

  3. #3
    I could stop if I wanted to
    Join Date
    2001-11
    Posts
    200
    Login to Give a bone
    0

    Default Re: Renumbering Text

    Thanks John

    I removed the space but no joy. It does not seem to pick up any of the text. i.e. it does not highlight the text entity.

    Could it be anything to do with the fact I am using mtext.

    Regards

    Neil

  4. #4
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,570
    Login to Give a bone
    0

    Default Re: Renumbering Text

    Ah, yes. CHANGE does not work (in that way) on mtext objects.
    You might be able to use DDEDIT in it's place and it will not require all those semi-colons.

  5. #5
    I could stop if I wanted to
    Join Date
    2001-11
    Posts
    200
    Login to Give a bone
    0

    Default Re: Renumbering Text

    Thanks Sounds good. Only one problem, not very good at writing macro's.

    Can you or anyone help with changing this macro so suit??

    Regards
    Neil

  6. #6
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,570
    Login to Give a bone
    0

    Default Re: Renumbering Text

    Does the text need to remain as Mtext or could it be exploded to Text?

  7. #7
    I could stop if I wanted to
    Join Date
    2001-11
    Posts
    200
    Login to Give a bone
    0

    Default Re: Renumbering Text

    HI

    Not sure it will only remain as a number in the balloon, so I rather gather it does not matter.

    If the drawing is updated and I need to add further detail balloons will changing the text stop me updating in the future?

    I have attached a pdf file to show you how the drawing works, all graphical objects are in model space whereas the balloons and leaders are in paper space.

    Hope this helps.

    Many thanks for your help.

    Neil
    Attached Files Attached Files

  8. #8
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,570
    Login to Give a bone
    0

    Default Re: Renumbering Text

    I'm trying but it's years since I last did this.

    Anyone else feel free to jump in.

  9. #9
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,570
    Login to Give a bone
    0

    Default Re: Renumbering Text

    Okay - this works on a button -

    *^c^cexplode;\;;change;l;;;;;;;$M=$(getvar,useri1);setvar;useri1;$(+,1,$(getvar,useri1))

    It selects one mtext object, explodes it to text and changes the number to the current value of "useri1", increments "useri1" and continues until you press ESCape.
    First you need to set your starting value with

    setvar;usrei1;N - where N is the start value.
    or enter at the command line with spaces in place of the semi-colons.

    There are 5 variables available useri1 to useri5 - so you could have buttons to set different start values.

    edit - the second column was a copy of the first column before running.
    Last edited by jaberwok; 2009-09-27 at 03:20 PM.

  10. #10
    I could stop if I wanted to
    Join Date
    2001-11
    Posts
    200
    Login to Give a bone
    0

    Default Re: Renumbering Text

    Thanks John

    That makes life a lot easier.

    Many thanks for your help.

    Regards

    Neil.

    PS is there a good bool I can get re autocad and programming macros etc

Page 1 of 2 12 LastLast

Similar Threads

  1. 2014: Renumbering a parameter
    By evan549822 in forum Revit - API
    Replies: 0
    Last Post: 2014-10-01, 05:45 PM
  2. Numbering, renumbering
    By mike.vroegindeweij in forum Revit Structure - Wish List
    Replies: 4
    Last Post: 2007-10-17, 05:00 AM
  3. renumbering parcels
    By rkahl in forum AutoCAD Civil 3D - General
    Replies: 0
    Last Post: 2005-12-20, 02:38 PM
  4. Renumbering...
    By aaronrumple in forum Revit Architecture - Wish List
    Replies: 3
    Last Post: 2005-03-28, 07:56 PM
  5. Renumbering Parcels
    By eduley in forum AutoCAD Civil 3D - General
    Replies: 7
    Last Post: 2005-02-07, 05:47 AM

Posting Permissions

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