Jump to content

Redefining a block as it's inserted


LosGirk

Recommended Posts

Hi guys and gals,

What's the best way to update a titleblock? When a block of the same name that has been changed is inserted using the command line you are asked if you want to redefine it. When I insert the block through lisp using either -insert .-insert or insert as the command to bring it in, it bypasses asking to redefine it. I'm trying to write something that will channge our titleblock to it's newer version. Can someone help me with this please? Is this even the method that this should be done? Thanks for your time.

Link to comment
Share on other sites

Thanks for the lead Lee Mac. I was able to come up with this and it works for me.

 

 

(defun c:bdrchg (/ )

(vl-cmdf "insert" "blockname=C:\\BLOCKS\\blockname")

(command)

(princ))

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