Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

find and replace

6 REPLIES 6
Reply
Message 1 of 7
Charlie_007
450 Views, 6 Replies

find and replace

can anyone help me how I can handle the FIND command in script

so in 600 drawings 20 different texts,
change in MTEXT, TEXT and ATTRIBUTES

6 REPLIES 6
Message 2 of 7
Patchy
in reply to: Charlie_007

Try this program, it's free

 

http://lee-mac.com/bfind.html

Message 3 of 7
Charlie_007
in reply to: Patchy

Smiley Happy

Spoiler
 

 

 

Oke Thanks

Message 4 of 7
abubakars
in reply to: Charlie_007

Try this Batch tool and it is free http://www.cadmanagertools.com

you can find and replace text in entire drawing/All layouts/Selected layout/Model space

assign find and replace as commands to selected drawings. hope this would help.

 

Text Find&Replace.PNG

Message 5 of 7
PatrickByrne
in reply to: abubakars

Three things to consider when writing scripts.

  • Script files can contain comments. Any line that begins with a semicolon is considered a comment, and AutoCAD ignores it while processing the script file.
  • A space is considered a Return (Enter Key pressed). A new line is also considered a Return.
  • Scripts are well worth learning, they can save a lot of time.

 

On the AutoCAD command line work through the series of commands you need to achieve the results you want, then press F2 to see the results. Your script routine, can be in two parts.

 

To change attributes

 

;Change attribute text in a block. This changes DISUSED to NOT IN USE Alter these for yours
;
_Attedit
_N
_N  
;Text to change
DISUSED
;Text to change to
NOT IN USE
_regen
_qsave
;End of routine

 

To change text you can use the Autodesk chtext.lsp file.

;; Using Chtext lisp file located in the support directory of AutoCAD
(load "Chtext")
Cht
All

T
G
;Next line contains text you want to change
April 20, 1998
;Next line contains text you want to change it to
JUNE 27, 2001

_Qsave
;End of routine

 

Patrick
http://www.multi-batch.com/
For your entire batch processing needs

Message 6 of 7
Charlie_007
in reply to: abubakars

Thanks
Message 7 of 7
Charlie_007
in reply to: PatrickByrne

Thanks

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

Post to forums  

Autodesk Design & Make Report

”Boost