Hello,
I currently am able to find and replace text using the following code in Notepad, utilizing the batch process command in utilities, version V8i:
MDL SILENTLOAD FINDREPLACETEXT,CHNGTXT CHANGE DIALOGTEXT FIND DIALOG SEARCHSTRING OLD TEXT HERE FIND DIALOG REPLACESTRING NEW TEXT HERE CHANGE TEXT ALLFILTERED
Thus far this code is working properly; however, If i want to replace the old text with new text that goes on multiple lines, I am not able to make it work.
For example:
Old text: The quick brown fox jumps over....
New Text: The quick brown [new line]
fox jumps over....
Is there a way of properly doing this by modifying the code above?
Thank you in advance.
Thank you very much for the response Jon. I'll post the question on the MicroStation Forum as you suggested.
Sincerely,
Dery Teixeira
Edit: Found the answer in the MicroStation forum:
Dery Teixeira said: i want to replace the old text with new text that goes on multiple lines
Your problem is that multi-line text is made up of two or more text elements in a text node element. AFAIK the find & replace text tool in MicroStation doesn't understand multi-line text. That is, there's no way to tell the tool that the new text should break after a specified word. Behind the scenes, what you want MicroStation to do is to convert your existing text element into a text node having two text elements, which I don't believe the text Find/Replace tool can do.
Try assigning a Text Style in which you have defined the line length. It may not do exactly what you want, but it's worth a try.
For more help, post your question to the MicroStation Forum. Perhaps someone has come across your problem and approached it a different way.
Regards, Jon Summers LA Solutions