Copy & Increment Text

Hi,

Something that has bugged me for years with the copy & increment text is that you can only use the command in a verb-noun mode, not in a noun-verb mode.  Here's my regular situation...  I have a detail sheet with a grid of lines.  A certain distance from each intersection of the grid, I have a detail number.  Of course the detail numbers are each incremented by one.  So if I used a standard copy element command, I would select my text element, hit the copy element icon, pick my grid intersection as my "from" location, and then pick my next grid intersection as my "to" location.  (Select element first, then select tool to use with that element--noun-verb).  With the Copy & Increment Text tool, I can not select my element first.  So if I want to use it, I have to zoom way out, so that when I snap to my grid intersection, the detail number is in the locate circle and then I can zoom back in to place my copies.  Why can't the Copy & Increment Text tool work in both verb-noun, and noun-verb modes?

--Thanks,
--Robert

P.S. I've also see forums asking for a "number of copies" option.  This would be useful on occasion.

Parents Reply Children
  • Hello everybody,

    I have some problem with copy/increment text that I cannnot solve by above tips and any other I tried to find on forum.

    I was trying to use some forum's macros but i haven't got what i want.

    Here is my problem:

    I need to annotate some 100 meteres points by chainage in fomat 000.0 (comma or point doesn't matter for my drawing).

    When I'm using copy/increment tool it allows me to increment by integer numer ( help file says), so when i set tag increment to 1 it increments my 459.1 + 1(increment) the result is 459.2 but when it comes to 459.9+1 the result is 459.10 and it istn't what i want = 460.0. Do you have any solution for that?

    Below is screen with my tries...


    Marek Gaworski

    Railway design engineer

    SKANSKA Poland

    Bentley MX v8.11.9.397

  • Unknown said:
    I need to annotate some 100 meteres points by chainage in fomat 000.0

    Try the Text Increment tool that we wrote.  It will accept a decimal value for increments.

    This is just an incrementor — it doesn't do copy-and-increment.  But since the source code is included in the VBA project, you can modify it to do what you want.

     
    Regards, Jon Summers
    LA Solutions

  • Jon,

    Thank You for your macro, it helps me with my work. 

    I've got one more qustion to You - how to maintain trailing zero, now when I increment by 0.1 after 459.9 the result is 460 not 460.0 - can you tell where in the code I should do some changes?

    To others:

    My workflow to annotate chainage:

    1. Create complex chain

    2. Annotate first point eg. 459.0

    3. Array text (not text node) along path by distance for first km

    4. Run LA Solutions's TextIncrementor macro by key-in:

         vba run [textincrementor]modmain.main .1   .1 - is my increment for hektometers

    5. Select text to increment

    6. Copy or array first km 459.0 ...459.9 to next kilometers

    7. Run again LA Solutions's TextIncrementor macro by key-in:

         vba run [textincrementor]modmain.main 1   1 - is my increment for kilometers

    8. Select text to increment kilometers

    Done ;-)

    Regards, Marek


    Marek Gaworski

    Railway design engineer

    SKANSKA Poland

    Bentley MX v8.11.9.397

  • Unknown said:
    I've got one more question to You - how to maintain trailing zero, now when I increment by 0.1 after 459.9 the result is 460

    Try the modified Text Increment tool.  It attempts to preserve the number of decimals in the incremented text.

     
    Regards, Jon Summers
    LA Solutions