Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Replace XXX in Autocad drawings

Status
Not open for further replies.

Praxden

Programmer
Jun 1, 2001
31
US
Does anyone have any code that will replace XXX in a drawing with for example 001 (rsxxxa20 will be rs001a20). I need to update 300 drawings. Find and replace works for each drawing, but it's a long day.


Sincerely,


Praxden
 
Instead of AutoCAD's replace you could use a lisp routine. Write a script to open/close the 300 drawings and run the lisp. A replace text routine (reptext) can be found at
Carl
 
Carl,

Thanks. Will a script file select all the text entities? I ran the lisp routine and it requires selection text to make changes.


Sincerely,


Praxden
 
According to the readme file that comes with the download you can supply the input within the script file. In the line asking for selection the line in the script should read "all".
 
Carl,

I played around with it today. I think I'm going to search for another way. The program limit's you to 5 drawings on the demo. Also I noticed that it doesn't supply the close statement. I figured out how to open and close drawing thru Access using VBA. If I could access autocad find and replace I would be set. I'm sure the code isn't the same as the dialog box. I have to read up on it tonight.


Praxden
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top