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
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.
Three things to consider when writing scripts.
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