Is there a way to Find and Replace for a batch of drawings and the find string is consistent XXXXX but the replacement string will be unique to each of the drawing?
I am working in Microstation Connect Edition Version 10.15.02.11.
You may be able to do something like that with a VBA routine. I don't know any other way to "batch" a unique string. Batch process doesn't have any intelligence about what file it is working on. It just issues commands. If you can't type your process into the command line (repeatedly, identically) it can't be done with a simple Batch Process. You can run a VBA THROUGH a Batch process. But I think the actual find-replacing would need some logic behind it.
MaryB
Power GeoPak 08.11.09.918Power InRoads 08.11.09.918OpenRoads Designer 2021 R2
Thanks, that is good to know. Do you know of any good VBA resources for Microstation?
MaryB said:You may be able to do something like that with a VBA routine
Here's a VBA Search & Replace freeware text tool. Unsurprisingly, it doesn't do exactly what Dan Murdoch wants (no-one ever asked that question before).
However, it includes the source code, so a VBA developer could modify it to add in the active DGN file name, or whatever is required.
Regards, Jon Summers LA Solutions
Awesome, that looks like it could be a great starting point. Thanks.
Mr. Summers is the best VBA resource I've ever seen!
I forgot about his freeware text replacement routine. It is indeed a good place to start. He has many other freeware tools and sample codes that are a great starting point for VBA projects, and some very informative articles. There are even a few routines that do cost, but are definitely worth the money if they apply to what your company does.