Jump to content

How to replace a block with another block in multiple dwg's


Recommended Posts

Posted

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.

Posted

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.

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

Posted

You're very welcome. We are all here to share our wisdom ;)

 

Z

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...