Jump to content

redefine blocks


daisenson

Recommended Posts

Hi there,

 

I have a few block that were used on a large documantation and need to be redefined.

I generally do this using the source blocks that have been modified from the design center and redefine it on the target drawing.

Any ideas of how to automate this via lisp?

To sum up:

-redefine a block from an instance of this block located in a directory outside the drawing.

 

Thanks

Link to comment
Share on other sites

Try this:

 

(command "._-insert" "[color=red]oldBlockName[/color][color=black]=[/color][color=blue]newBlockName[/color]" "")

 

 

Another example:

 

(command "._-insert" "[color=red]TEST[/color]=[color=blue]C:\\Documents and Settings\\<user>\\Desktop\\TEST[/color]" "")

Link to comment
Share on other sites

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