Hi,
The attached a routine will allow you to search and replace text in all the
drawings from a choosen folder, through Object DBX, without opening them in
editor. It's cleaner and faster. What you have to do is to look in the
attached file, at the end and try to adapt it to your needs.
There are two commands named REPLACETXTSTR1 and REPLACETXTSTR2 to show you
how to use the function. The explications for the arguments and about how to
implement the functions are there. You have to replace the path to your
folder, the text to search for and the replacement text. If you the flag
CASE_SENSITIVE is T, as you see it in the REPLACETXTSTR1 command, the
function will search for the exact match. If it is nil, it will search for
upper or lower caps, and replace all the occurences of the string to search
for.
The function checks all layouts of the drawings in the indicated folder. If
you have problems, get back to me, I will try to help you when I have time.
Hope this helps
Constantin
a écrit dans le message de news: 5375307@discussion.autodesk.com...
Does anyone know of any Lisp Routine or Program that allows me to change a
common text in a whole bunch of drawings at once? (More than 300 drawings in
the same directory.)