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
  • 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