I have a keyin/script/batch process question. I am running Microstation V8i SS3. I am trying to create a simple keyin command file that will find/replace a string of text in my sheets with the active filename. I have gotten this to work for me in the past but I misplaced my script file.txt . Pretty much want to be able to replace "XYZK" with activefilename.dgn. Below is what I'm working with in a batch process, which is only replacing "XYZK" with "$(filename (_dgnFile))" rather than returning the active file name.
MDL KEYIN FINDREPLACETEXT FIND DIALOG SEARCHSTRING XYZK FIND DIALOG REPLACESTRING $(filename (_dgnFile)) CHANGE TEXT ALL
Any help would be appreciated! Thanks!
Unknown said:FIND DIALOG REPLACESTRING $(filename (_dgnFile))
I can't see any evidence that suggests that the Find/Replace Text dialog will interpret a configuration variable. I'll be happy to be proved wrong, for I can see how useful that would be!
Joseph Paras said:I misplaced my script file.txt
You're not thinking of text substitution as implemented for printing?
Regards, Jon Summers LA Solutions
Joseph Paras said:$ FIND DIALOG REPLACESTRING $(filename(_dgnfile))
I'm pleased that you got it to work! But how did you find how to do that $ prefix? Even knowing your solution, I can't find any reference to that technique.