phobos Posted May 13, 2009 Posted May 13, 2009 Hi all, I need a lisp (any way) to replace a block in many autocad files with an other block quickly. Is there anyone who can help me on that. Thanks in advance. Quote
Freerefill Posted May 13, 2009 Posted May 13, 2009 I did a quick search and found two ways to insert a block with the option to overwrite (INSERT or DesignCenter), but neither can be done in a LISP (INSERT doesn't have that option when using -INSERT and DesignCenter can't be done from the command line). Anyone else have an idea? I'm sure there must be some way to update the block reference using Visual LISP. Doing it on multiple files is easy, and there are many solutions already present in this forum. Though, I suppose it would help to clarify, are you updating a block, that is to say, inserting the same one and over-writing it with an updated version, or are you replacing it with a new one entirely? If the latter, that's easier. Quote
Freerefill Posted May 13, 2009 Posted May 13, 2009 Just found this: http://www.ellenfinkelstein.com/autocadtips/AutoCAD_tips_replace_one_block_with_another.html Looks like there is a way to do it with -INSERT after all, though -BLOCKREPLACE should work just fine as well. ^^ Quote
dbroada Posted May 13, 2009 Posted May 13, 2009 INSERT doesn't have that option when using -INSERT yes it does. use -INSERT oldblockname=newblockname or if the block name is the same -INSERT block= the new block must be in a pathed folder. oh well, just read the above post but it shows I knew my stuff. Quote
Zorg Posted May 14, 2009 Posted May 14, 2009 You're very welcome. We are all here to share our wisdom Z Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.