I found a way to change my text in my block by using the REFEDITE command. But I'm having trouble making a script to pick the block and then select the text and save the information. Is there a script out there that can do this using the REFEDIT command?
Bill, Yes I did try the -REFEDIT. But I have to select the block that has the text I need to change. How do I list that procedure in a script? Also, after I pick the block. I have to slect the text that I need to change and use TEDIT. Then I need to close REFEDIT procedure. This looks like a very complex procedure. Guess I'll have to do this manually. I have to change about 70 drawings. If you can think of something that will help speed this up let me know.
Things aren't going to be easy when selecting blocks. There are a few methods, like using the SSX command (do a search for it here in the forums), as well as using the "select w" and specifying a window (if your blocks are in the same place everytime).
Sorry, there is nothing built-in to AutoCAD that helps with this situation that I know of...
The following script will allow you modify mtext in a block using the REFEDIT command:
-REFEDIT -1.2777,7.2723 OK ALL YES
-VBALOAD "$HUR_PATH$LISP/Mtext.dvb" -VBARUN MTEXT.SearchAndReplace text to be changed changed text VBAUNLOAD "$HUR_PATH$LISP/Mtext.dvb" ;------------- REFCLOSE save
QSAVE
The second line is a location somewhere on the block so that the block is selected as the reference. You may also need to change the filedia to 0.