Find and Replace mass text with a script?

Find and Replace mass text with a script?

tmwatte
Observer Observer
1,787 Views
5 Replies
Message 1 of 6

Find and Replace mass text with a script?

tmwatte
Observer
Observer

Hi All,

I am looking to mass replace text in a single .DWG file. I have hundreds and hundreds of texts and it would be a pain to change these all manually. I would love to be able to use a script and an excel file in a format below to accomplish this.

 

Existing Text, Replacement Text

Apple, Banana

Carrot, Pear

Turnip, Orange

 

I can easily take those values and put them into a script (or maybe even a LISP, but I only just learned how to upload a LISP program today), I just don't know what the commands should be.

 

Is this possible? I tried Bfind from Lee Mac, but there was no way to upload a script. I've done some googling, but nothing has worked for me yet (probably due to my inexperience with LISP).

 

Thanks!

0 Likes
1,788 Views
5 Replies
Replies (5)
Message 2 of 6

user181
Mentor
Mentor

There is an autocad command FIND that can find and replace text through an entire drawing. Have you tried this?

EESignature


0 Likes
Message 3 of 6

tmwatte
Observer
Observer

I'm familiar with FIND, but I can only replace one unique value at a time manually.

 

I have hundreds of unique texts that will each need to be changed into a different unique text.

 

What I am trying to do is avoid having to do this manually, and instead, run a script to find and replace based off a table similar to the example I have in the original post.

0 Likes
Message 4 of 6

pendean
Community Legend
Community Legend
Have you done a search for what you want yet? Perhaps this similar posting from a few years ago https://forums.autodesk.com/t5/autocad-forum/find-and-replace-different-text-in-multiple-autocad-fil...

0 Likes
Message 5 of 6

tmwatte
Observer
Observer

bFIND through Mac Tools does not solve my issue. Neither does purchasing a third party piece of software as I work for a company that heavily regulates any software downloaded (has to be from a first party company app store).

 

 

0 Likes
Message 6 of 6

Sea-Haven
Mentor
Mentor

Google more this has been answered on this forum multiple times, maybe a week or 2 ago. 

0 Likes