Hi guys. Nice example codes. Since this is a relatively popular topic for me also, due to using techniques like these relatively often in my own rules, I decided to drop one of my example codes in there also. This one is specifically for working with 'external' iLogic rules though, because that's where 99% of my rules are, and because I have so many of them, in so many different sub folders (categories, all under one 'primary folder'). Sometimes, if I rename an external rule, or change the name of something important, that is being called for across multiple other external rules, I use this tool to find the previous text, and replace it with the new text, across all existing external rules. It just directly edits the text files themselves, without involving the usual iLogic snippets. It does use iLogic for its 'Logger' functionality, and to access the external rule directories listing though.
I will attach it as a text file, for convenience, because it is considerably longer, and includes the use of an Inventor.ProgressBar, so the process can be canceled, if needed. It could likely be improved upon &/or further developed, because I haven't revisited it in a while, but it serves my needs pretty well, and processes hundreds of files pretty quickly, even with the small dialog pop-ups here and there (by design). Sometimes, when a term is widely used, I may not actually want that term replaced in every single instance that it might be found throughout all rules, so I have it set-up to prompt me with the name of the rule where the text is found, giving me the chance to say Yes or No to that instance replacement.
Wesley Crihfield

(Not an Autodesk Employee)