T O P I C R E V I E W |
jjimenez |
Posted - May 03 2006 : 4:58:06 PM Is there a script to rename attribute tags in existing drawings? |
4 L A T E S T R E P L I E S (Newest First) |
n/a |
Posted - May 04 2006 : 10:27:12 AM jjimenez:
I found that the previous file changed the prompt and not the tag name. I did some surfing and found and slightly modified the attached file for your specific usage.
You will have to rename the file to CATAG.LSP and place it in the folder with your drawings or in the AutoCAD search path.
Next create the following two line script exactly (with parentheses and quotes): (load "CATAG") CATAG
I tested it here based on the information you provided. It seemed to work.
BY THE WAY: I started a previous reply and got a little careless with the mouse. I'm not sure where the reply went. It may show up on the forum prior to this post. Please disregard it. It was sent prematurely by accident.
Download Attachment: CATAG.TXT 2.29 KB |
jjimenez |
Posted - May 03 2006 : 7:32:20 PM I'm not a lisp programmer and I'm not sure where to replace the Tag name in the lisp file. The name of my block is "TblockF" and the the tag name I'm trying to change is "CAD-NO" to "CAD_NO" can you show me where they actually go in the lisp file? Thank you. |
n/a |
Posted - May 03 2006 : 5:28:18 PM I forgot to mention that you should leave out the quotes in "ATAG" when you enter it on the 2nd line of your script. |
n/a |
Posted - May 03 2006 : 5:26:21 PM jjimenez:
I believe I have created a script in the past using the attached file to accomplish what you are inquiring about. You will have to rename the .TXT extension to .LSP. Then create a script to load the lisp file on one line and "ATAG" on the next line to run the lisp file. Test it on something you have backed up!!
You will have to edit the block name, tag name, and new prompt withing the lisp file with a text editor. I left instructions in the file. It only works on one tag at a time, tho.
I hope it helps. (It's something I downloaded from someone else, so I can't take any credit: whether it helps or destroys.)
Download Attachment: Change Attribute Tag.txt 1.78 KB |