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

Replacing a common text in multiple drawings.

12 REPLIES 12
Reply
Message 1 of 13
samayr
1298 Views, 12 Replies

Replacing a common text in multiple drawings.

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.)
12 REPLIES 12
Message 2 of 13
Anonymous
in reply to: samayr

samayr said the following On 10/26/2006 6:23 AM:
> 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.)

Toolpac contains a find & replace routine that will operate on any
number of drawings.

http://www.dotsoft.com/toolpac.htm
http://www.dotsoft.com/images/tpdwgreplace.png

--
R.K. McSwain
http://rkmcswain.blogspot.com
Message 3 of 13
rogerio_brazil
in reply to: samayr

Hi, search for "batchlisp" in this forum.


:)

Rogerio
Message 4 of 13
Anonymous
in reply to: samayr

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.)
Message 5 of 13
samayr
in reply to: samayr

Hi Constantin,
I loaded the lisp file and run the REPLACETXTSTR2 in the command prompt.but it is not working. i changed the folder,text to search,text to replace. Can you please help.
Thanks
Samayr.
Message 6 of 13
EC-CAD
in reply to: samayr

Sure,
See http://www.bobscadshop.com
EC-Search_Replace
Does multiple folders, multiple drawings, up to
(10) strings at a time.. in Text, MText, or Attributes..

:)

Bob
Message 7 of 13
Anonymous
in reply to: samayr

Can you please post the error message or explain why it's not working or
what AutoCAD says in return to your command ? It's hard d for me to guess
why and for what reason this happens...

a écrit dans le message de news: 5393465@discussion.autodesk.com...
Hi Constantin,
I loaded the lisp file and run the REPLACETXTSTR2 in the command prompt.but
it is not working. i changed the folder,text to search,text to replace. Can
you please help.
Thanks
Samayr.
Message 8 of 13
Anonymous
in reply to: samayr

Did you take a looko in the LISP file at the end ? It's expained there what
changes to make in order to adapt it to your configuration...


a écrit dans le message de news: 5393465@discussion.autodesk.com...
Hi Constantin,
I loaded the lisp file and run the REPLACETXTSTR2 in the command prompt.but
it is not working. i changed the folder,text to search,text to replace. Can
you please help.
Thanks
Samayr.
Message 9 of 13
samayr
in reply to: samayr

Hi constantin,
It is working fine.Thank you very much.
But I want to ask you if it is more than one text to replace what I have to do.
Regards
samayr.
Message 10 of 13
Anonymous
in reply to: samayr

Hi,

Basically it should be processed in a loop. I will think about it and try to
modify the code. Right now I am busy with my own problems, but come back
later.

Regards,

Constantin

a écrit dans le message de news: 5400992@discussion.autodesk.com...
Hi constantin,
It is working fine.Thank you very much.
But I want to ask you if it is more than one text to replace what I have to
do.
Regards
samayr.
Message 11 of 13
samayr
in reply to: samayr

Hi,
If it is more than one text to replace in differnt drawings what I have to do.Can you please modify the code.
Regards
samayr.
Message 12 of 13
Anonymous
in reply to: samayr

Hi samayr,

This will somehow complicate the things. Specially if there are different
text values for each drawing. Can you tell me if the text items to be
replaced are the same for all your drawings or they will vary from a drawing
to another ?

Constantin


a écrit dans le message de news: 5490771@discussion.autodesk.com...
Hi,
If it is more than one text to replace in differnt drawings what I have to
do.Can you please modify the code.
Regards
samayr.
Message 13 of 13
eng.minamaged
in reply to: samayr

Hi,this lisp you can replace multiple text in multiple dwgs

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

Post to forums  

Autodesk Design & Make Report

”Boost