Trying to use LEE Mac's BFIND lisp, not changing text.

Trying to use LEE Mac's BFIND lisp, not changing text.

John_WilliamsSYKJ2
Contributor Contributor
1,693 Views
11 Replies
Message 1 of 12

Trying to use LEE Mac's BFIND lisp, not changing text.

John_WilliamsSYKJ2
Contributor
Contributor

Hello World

 

I have managed to find Lee's BFIND lisp and am trying to use it within regular, not LT, CAD 24. I run the lisp command with the text that I want to change but none of the text is actually changing. Is there something with what I am doing that is not right? I also noticed reading the forums that CAD 24 is changing how lisps are processed. I have attached some screenshots to help trouble shoot. Any help will be much appreciated.

Screenshot 2024-11-12 145831.pngScreenshot 2024-11-12 150050.png

0 Likes
Accepted solutions (1)
1,694 Views
11 Replies
Replies (11)
Message 2 of 12

pendean
Community Legend
Community Legend

@John_WilliamsSYKJ2 wrote:

...with the text that I want to change but none of the text is actually changing...


Can you share your DWG file with the problem here?

Are you sure of the from-to choices are actually present?

pendean_0-1731444139666.png

 

Are you sure these are not attributes or other "text" instead of just hat you have chosen?

pendean_1-1731444196260.png

 

Why not "generate a report" to find out more?

pendean_2-1731444237363.png

 

 

 

 

 

 

 

 

 

 

 

 

 

0 Likes
Message 3 of 12

Rick_Tolleshaug_TSC
Advocate
Advocate

I downloaded BFINDv2-0.lsp, tested it on "All Open Drawings" and replacements were done but required REGEN in each drawing to update and show changes. It appears one can be fooled after initial run that text remains unchanged (haven't done REGEN) and of course any subsequent runs of BFIND will not find matches and will return message "No Replacements Made". Maybe this is what you experienced?

0 Likes
Message 4 of 12

baksconstructor
Advocate
Advocate

If you find it difficult to use lisp, this might help you -

AutoReplaceCAD - Automatic replacement and translation of texts in many CAD files 

 

0 Likes
Message 5 of 12

John_WilliamsSYKJ2
Contributor
Contributor

I am going to answer your questions in a list

  1. Sample Dwg Attached
  2. The choices are present
  3. The only attribute I am changing is Mtext
  4. I just unchecked "generate report" because the program is already not fully executing and producing a report even if it was checked off
0 Likes
Message 6 of 12

John_WilliamsSYKJ2
Contributor
Contributor
Well in that example I was running the program on all open drawings. But even when I was selecting the file directory, the program was not preforming the changes.
0 Likes
Message 7 of 12

pendean
Community Legend
Community Legend

@John_WilliamsSYKJ2 BFIND seems to work just find in your sample DWG file, no regen required either, see parameters below

pendean_0-1731508203802.png

 

pendean_1-1731508235365.png

 

Message 8 of 12

John_WilliamsSYKJ2
Contributor
Contributor

What version of CAD are you using? I know I am so close to this working but it is not. Are there any backend permissions that I need to give the program by any chance? Could you attach the BFIND you are using?

0 Likes
Message 9 of 12

pendean
Community Legend
Community Legend

@John_WilliamsSYKJ2 wrote:

What version of CAD are you using? ...


Screenshots are from AutoCAD 2023.1.6, but also tested in AutoCAD2025.1.1 here, Win10Pro.

Other than the fact that I am a full admin with my OS login on my desktop PC, all I did was download BFIND from the website (you can do the same, V2.0 2011), drag/dropped it into the program window with your shared file open to load, then ran the command.

Message 10 of 12

John_WilliamsSYKJ2
Contributor
Contributor
Accepted solution

I was speaking to some people in a different department and they have been using that lisp for a while so I took their older version, placed it in my appdata folder and things are working just fine. I don't know what the holdup is on the newer version however. Thank you for the help!

0 Likes
Message 11 of 12

Rick_Tolleshaug_TSC
Advocate
Advocate

It's working for me as well on AutoCAD 2025.1.1 Win10Pro (desktop PC, full admin). But would not replace "W/" or "ARCH." with "WITH" and "ARCHITECTURE" respectively with "Find Whole Words Only" enabled. Only tested with "All Open Drawings".

Message 12 of 12

John_WilliamsSYKJ2
Contributor
Contributor

Thankyou for this information. Yeah I noticed keeping the setting with match case and find whole word was causing it to not fully execute as well.

0 Likes