Jump to content

Batch Find & Replace Text


Lee Mac

Recommended Posts

I think it would be a useful option (x and y or x,y and z), well for me anyway :), glad it's on the back boiler.

 

Ok, I'll see what I can do when I get some time :)

Link to comment
Share on other sites

Code finally updated to Version 1.1, quite a few additions to this version, and a complete rewrite of the String Replacement function that does all the work in the program.

 

Lee

Link to comment
Share on other sites

Nice one Lee,

 

But what about an option to match string case?

Just a thought.

 

Thanks Buzzard :)

 

String case is controlled using the first option in the options dialog :)

Link to comment
Share on other sites

Lee,

 

When I run the code by way of the image below, I get this error:

 

Command:
BFIND ; error: Exception occurred: 0xC0000005 (Access Violation)
; warning: unwind skipped on unknown exception
Command:

Document3.JPG

Link to comment
Share on other sites

Hi Buzzard,

 

Thanks for the report - in fixing one of the earlier bugs, I think I made another one for myself. I have updated the code in the first post, please let me know if this resolves the issue. :)

 

Lee

Link to comment
Share on other sites

Lee,

 

I ran the code in 2004 when I got that error Before.

So I now decide to test in 2009 and it shows as an Automation Error.

 

Seems to me its a Version thing.

Link to comment
Share on other sites

Here is the error in 2009:

 

Command: BFIND

** Error Opening File: Air_Force_Village.dwg **

** Error: Automation Error. Description was not provided. **

Command:

Link to comment
Share on other sites

It sounds like its the ObjectDBX part that is failing, but I haven't had trouble with the code before :(

 

EDIT: After some testing, with drawings in folders/subfolders, various objects etc, I cannot seem to reproduce the error - could anyone else report if they are getting the same error?

Link to comment
Share on other sites

I faced a problem, I don't know if it mentioned before or not, or it is normal

The batch doesn't replace the text in opened drawings, but change the file itself

Link to comment
Share on other sites

I faced a problem, I don't know if it mentioned before or not, or it is normal

 

The batch doesn't replace the text in opened drawings, but change the file itself

 

Does this happen with the latest version? I knew there was a bug in the old version regarding that.

Link to comment
Share on other sites

I downloaded again and tested BFind V1.1.lsp

 

I created a new folder and copied 5 dwgs in this folder

Run BFind

Only active dwg has been changed, and the other dwgs Text didnt change

and Autocad didn't ask to save other files, when colse all files

when open again all files the text has been changed.

 

This is the case

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...