Batch find and replace

I have a job where the architect is using  multiple  call outs for the same material.it's all based if it's on the floor ,furniture, ceiling, counters ,walls etc.

When I create  my shop drawings I think I plan on using the architects call outs but I want to go back and find and replace the cryptic call outs with  the material  call outs  actually  call out 1 call out per material.  How can I do this in a script. Then add that script into batch mode

Parents Reply Children
  • Which version of the software are you using? That might make a difference.

    I can't recall any key-ins for find/replace text, but that doesn't mean there aren't any. You could try searching this board because I think this has come up before.

    It wouldn't be too hard to come up with a simple find and replace VBA macro...EXCEPT that "text" can be text elements, text node elements, notes, dimensions, or nested in cells. Some of which are not really accessible through VBA, and others that require some recursive looping to dig down to the text element itself.

    The nice thing is that the Find/Replace dialog does actually recall some of the most recently used strings.

    I can see what you want to do, but I'm not sure of a good way to automate it.

    MaryB

    Power GeoPak 08.11.09.918
    Power InRoads 08.11.09.918
    OpenRoads Designer 2021 R2

        

  • It wouldn't be too hard to come up with a simple find and replace VBA macro...EXCEPT that "text" can be text elements, text node elements, notes, dimensions, or nested in cells. Some of which are not really accessible through VBA, and others that require some recursive looping to dig down to the text element itself

    This freeware VBA macro already does most of that...

    Text Replace

    The VBA project is not locked, so you can view and edit the VBA code.

     
    Regards, Jon Summers
    LA Solutions

  • Jon this doesnt seem to work properly. I get strange results with the 2 variables matches, replaced Iit may find 9 results and replaces that string with the same text 9 times in the same line

    Kirk

    I Wish Cadland was Reality

  • sorry Jon, the download zip doesnt have the dgn example not the html on how it works... I downloaded from blue btun and from hyperlink  no differnce...

    Lorys

    Started msnt work 1990 - Retired  Nov 2022 ( oh boy am I old )

    But was long time user V8iss10 (8.11.09.919) dabbler CE  update 16 (10.16.00.80) 

    MicroStation user since 1990 Melbourne Australia.
    click link to PM me