LosGirk Posted January 21, 2016 Share Posted January 21, 2016 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. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted January 21, 2016 Share Posted January 21, 2016 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. Quote Link to comment Share on other sites More sharing options...
LosGirk Posted January 21, 2016 Author Share Posted January 21, 2016 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)) Quote Link to comment Share on other sites More sharing options...
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.