barristann Posted March 1, 2023 Share Posted March 1, 2023 Hi all, Lee Mac's Batch Find & Replace Text is incredible, but is there a way to modify the codes to ONLY allow searching? http://www.lee-mac.com/bfind.html Two days ago, I forgot to select the search only option and deleted some text by accident. So to prevent this in the future, I would like to modify the codes themselves. Which part can I comment out or remove to disallow Replace or Save? Thank you. Quote Link to comment Share on other sites More sharing options...
mhupp Posted March 1, 2023 Share Posted March 1, 2023 Maybe have search only option on as default would be the simplest fix update line 505 " : toggle { key = \"search\"; label = \"Search Only\"; is_tab_stop = false; }" to " : toggle { key = \"search\"; label = \"Search Only\"; is_tab_stop = true; }" 2 Quote Link to comment Share on other sites More sharing options...
barristann Posted March 1, 2023 Author Share Posted March 1, 2023 This will certainly work. No more accidents. Thank you mhupp! 2 Quote Link to comment Share on other sites More sharing options...
mhupp Posted March 2, 2023 Share Posted March 2, 2023 13 hours ago, barristann said: This will certainly work. No more accidents. Thank you mhupp! And if you want to use the other features you still can. 1 Quote Link to comment Share on other sites More sharing options...
Steven P Posted March 2, 2023 Share Posted March 2, 2023 I'll have to go back to bfind, but I thought it remembered the last setting? Might be wrong, some of Lee Macs stuff does, some doesn't 1 Quote Link to comment Share on other sites More sharing options...
SoloGM Posted April 19, 2023 Share Posted April 19, 2023 Hi all. Does BFIND work for you in Autocad 2022-2024? Quote Link to comment Share on other sites More sharing options...
Steven P Posted April 19, 2023 Share Posted April 19, 2023 Working for me. How is it not working Tips' Have you got the latest version from his website? Are you clicking 'Search only' Have you changed the directory to the one you want Quote Link to comment Share on other sites More sharing options...
SoloGM Posted April 19, 2023 Share Posted April 19, 2023 I do it all. But it doesn't find anything. It says "No Replacements Made" even in open drawing. Quote Link to comment Share on other sites More sharing options...
mhupp Posted April 19, 2023 Share Posted April 19, 2023 Might be case sensitive? Quote Link to comment Share on other sites More sharing options...
Steven P Posted April 19, 2023 Share Posted April 19, 2023 Is it plain text you want to replace and nothing like leaders or dimensions (I can't remember, Lee normally covers most cases so would be surprised if he didn't here). If you can't work it out and you can do this, maybe post a sample drawing to test? Quote Link to comment Share on other sites More sharing options...
SoloGM Posted April 20, 2023 Share Posted April 20, 2023 The problem is not in the drawing, but in the version of AutoCAD. It works great in AutoCAD 2019-2021, but fails in AutoCAD 2022-2024. Quote Link to comment Share on other sites More sharing options...
Steven P Posted April 20, 2023 Share Posted April 20, 2023 It works OK on my 2022 installation so there is a difference between what you have and what I have, if we can work that out we can make the LISP work. Often the main difference is the drawing file and what you are trying to change. Have you tried other search terms? (copy files to a temporary location and try from there?) Have you tried other files? Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted April 20, 2023 Share Posted April 20, 2023 Try setting LISPSYS=0, restarting AutoCAD and running the program. 1 Quote Link to comment Share on other sites More sharing options...
SoloGM Posted April 22, 2023 Share Posted April 22, 2023 On 4/20/2023 at 8:04 PM, Lee Mac said: Try setting LISPSYS=0, restarting AutoCAD and running the program. It works!!! The whole department worked in the old version of AutoCAD for this application. Thank you very much! Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted April 24, 2023 Share Posted April 24, 2023 That's great news - you're welcome! Quote Link to comment Share on other sites More sharing options...
rapp5 Posted April 2 Share Posted April 2 On 4/20/2023 at 8:04 PM, Lee Mac said: Try setting LISPSYS=0, restarting AutoCAD and running the program. It works when LISPSYS=0 but i have problems with russian characters when it's 0. Is there a better solution? Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted April 2 Share Posted April 2 7 hours ago, rapp5 said: It works when LISPSYS=0 but i have problems with russian characters when it's 0. Is there a better solution? Unfortunately the program will not be compatible with Unicode (non-ASCII) characters. Quote Link to comment Share on other sites More sharing options...
rapp5 Posted April 3 Share Posted April 3 9 hours ago, Lee Mac said: Unfortunately the program will not be compatible with Unicode (non-ASCII) characters. I don't actually want the program to be compatible with Unicode. I want it to work with LISPSYS = 1. I am not trying to find or replace any Unicode characters with Bfind. But there are unicode characters in the DWG and other lisps that support UNICODE have problems. My only request is that if it can work with LISPSYS = 1, there will be no problem. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.