I WOULD LIKE TO SEE IF I CAN GET HELP CHANGING MY TEXT IN ADDITON TO CHANGING THE COLOR OF SAID TEXT STRING IN A BATACH PROCESS? I FOUND THE BELOW MDL CODE TO BE LOADED AND IT HELPS TO REPLACE A CERTAIN STRING OF TEXT WITH MULTIPLE DRAWINGS. HOW DO I ALSO CHANGE THE COLOR OF THAT TEXT? PLEASE HELP.
MDL SILENTLOAD FINDREPLACETEXT;
FIND DIALOG SEARCHSTRING "XXXX";
FIND DIALOG REPLACESTRING "123";
CHANGE TEXT ALL
(WHAT CAN I ADD TO THIS TO HELP WITH COLOR ADJUSTMENT?????)
Do you want to change the color of all text in a drawing? or just text of a certain string?
The Find/Replace Text tool doesn't actually select any text. It's really much the same as the Find/Replace Text tool in Word or Excel. You can't use those to do anything other than a string replacement, and you can't do anything else with the Microstation tool, either.
If you need to select text with a specific string and make changes to it, you will probably need some sort of programming logic to search and select. You could probably do it with VBA, but I'm not sure how you could do that without a program.
MaryB
Power GeoPak 08.11.09.918Power InRoads 08.11.09.918OpenRoads Designer 2021 R2
The code I listed is loaded into a batch process and it does indeed change my text string from "xxx" to "123" (as an example). So I dont need logic. I need a notepad text file formatted and listed with key words to make a new batch process that also edits colors of certain textstrings on multiple drawings under the "batch process" button on microstation. There should be some new key words/commands that I can pop into my batch process text file to be able to do that for me. Again, no logic is needed. Someone posted the text changing MDL SILENTLOAD code on this forum and it's been very helpful.
All that MDL does is search the design file for strings and changes them. That is ALL it does. If you want to change the color or any other attribute of that text, you will need a way to select it.
Okay is there a similar way using a batch process to search for a textstring and change its color on multiple selected files? Like lets say I want textstring "ABC" and its colored "zero" for black. Can I search for it and make the batch process change from black to red for specific text on multiple drawings??
You can try
MDL SILENTLOAD SELECTBYSELECTBY TEXTSTRING "ABC"SELECTBY EXECUTEACTIVE COLOR 3CHANGE ELEMENT EXTENDEDSELECTBY TYPE NONE
If you can run these in through the keyin browser in Microstation and they do exactly what you want, you can use them in your batch process command file.
This came, in part, from https://communities.bentley.com/products/microstation/f/microstation-forum/88037/v8i---open-select-by-attributes-window-by-key-in and from https://docs.bentley.com/LiveContent/web/MicroStation%20Help-v17/en/SelectByAttributes.html