Jump to content

Recommended Posts

Posted

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.

Posted

There's usually more than one way to tackle a problem in AutoLISP, but reinserting the block to redefine the block definition is usually the easiest way; this program may give you some ideas.

Posted

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

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