The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 AutoCAD
 Lisp & Other Handy Files
 REFEDIT
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

cwthomas80
Starting Member



USA
3 Posts

Posted - November 28 2005 :  12:41:34 PM  Show Profile  Reply with Quote
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?

Admin
Administrator



626 Posts

Posted - November 28 2005 :  3:08:20 PM  Show Profile  Visit Admin's Homepage  Reply with Quote
Hi,

Have you tried -REFEDIT (with the minus sign?)

Regards,
Bill

Hurricane for AutoCAD
http://www.74mph.com
FAQ at
http://www.74mph.com/faq/faq.html
Tutorials at
http://www.74mph.com/tutorials.html
Go to Top of Page

cwthomas80
Starting Member



USA
3 Posts

Posted - November 28 2005 :  4:21:55 PM  Show Profile  Reply with Quote
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.
Go to Top of Page

Admin
Administrator



626 Posts

Posted - November 28 2005 :  4:29:27 PM  Show Profile  Visit Admin's Homepage  Reply with Quote
Hi Curt,

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...

Regards,
Bill

Hurricane for AutoCAD
http://www.74mph.com
FAQ at
http://www.74mph.com/faq/faq.html
Tutorials at
http://www.74mph.com/tutorials.html
Go to Top of Page

Phil
Starting Member

USA
2 Posts

Posted - October 20 2008 :  11:48:10 AM  Show Profile  Visit Phil's Homepage  Reply with Quote
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.

Phillip Curtis
Aquatech International Corp
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Hurricane Forum © 2009 - 2018 Go To Top Of Page
This page was generated in 0.05 seconds. Snitz Forums 2000