Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Batch find and replace from an excel file

12 REPLIES 12
SOLVED
Reply
Message 1 of 13
ehughes
7734 Views, 12 Replies

Batch find and replace from an excel file

I have a need for an Acad 2014 LISP that will read Excel and whats in column A will be replaced with whats in column B of the same row, about 3200 rows of it. Anyone ever found anything like that? I found something but it doesnt read from or copy from excel. Help please?!?

 

Evan

12 REPLIES 12
Message 2 of 13
3wood
in reply to: ehughes

Do you refer to block attributes?

Message 3 of 13
ehughes
in reply to: 3wood

No just text, they are part numbers from old the manufacturer in column A that need to be current manufaturer part/model number in column B.

Message 4 of 13
3wood
in reply to: ehughes

What is the entity type in AutoCAD? Table? Mtexts with lines? Texts? Blocks?

Can you upload a sample drawing with a sample Excel file?

 

Message 5 of 13
Lee_Mac
in reply to: ehughes

You could use my BFind program for this task.

 

As it stands, the current version of the program doesn't allow you to import find & replace pairs from an external file, however, you can perform the following steps to import the data into the program:

 

Start the program, enter a few find & replace entries, and save the list using an arbitrary reference. Then exit the program and type at the AutoCAD command-line:

 

(findfile "LMAC_BFind_SavedSearches_V2-0.txt")

 

This will give the location of the file that the program uses to store the find & replace pairs.

 

I would suggest that you first save a few different search references with the program (using the 'Save' button) and you will then easily see the required format of this text file. The file may then be edited manually to add search/replace items from your spreadsheet, providing that you keep to the same format so that it may be read by the program in the expected format. As a tip, I would suggest first saving your Excel spreadsheet as a tab-delimited text file.

 

I hope this helps,

 

Lee

Message 6 of 13
ehughes
in reply to: Lee_Mac

AWESOME!! That worked great! Thank you very much!

Message 7 of 13
Lee_Mac
in reply to: ehughes

evan wrote:

AWESOME!! That worked great! Thank you very much!

 

Glad to hear it evan - you're welcome!

Message 8 of 13
joãomoura5585
in reply to: Lee_Mac

You are simply the best !

thank Lee Mac

Message 9 of 13
vinay.moogi777
in reply to: Lee_Mac

hi lee mac

 

i want change in each and every sheet this bfind can u provide me any solution

 

 

Message 10 of 13
iamwonder
in reply to: Lee_Mac

 I have download "bfind",but it dosent work with chinese ,how can i do?

Message 11 of 13
teneilew
in reply to: Lee_Mac

I realize this is a very old post but, Lee Mac, you have saved me hours or work once again! Thank you!
T
Message 12 of 13
yarik89V9ZK2
in reply to: ehughes

 AutoReplaceCAD from kdmsoft solved the problem, I do not give a link, you will find it yourself in Google

Message 13 of 13
shafiq_adha
in reply to: Lee_Mac

thanks man! you just help me replace 250 tagging in 5 minutes

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost