Kat Posted June 24, 2009 Posted June 24, 2009 Hello all, I was wondering if there was an easy way to change one type of block that's already inserted into a drawing into a different block entirely. I know how to modify the block file, so it adjusts on your drawing, but I need to keep that file exactly the way it is. Let me know if this doesn't make any sense! Thank you, Kat Quote
ronjonp Posted June 24, 2009 Posted June 24, 2009 You could run this in a script: (defun blockredefinerthingymabob (blocknametoredefine fullpathofnewblock) (if (tblobjname "block" blocknametoredefine) (command ".-insert" (strcat blocknametoredefine "=" fullpathofnewblock) '(0 0 0) (command) ) ) (princ) ) ;;usage (blockredefinerthingymabob "myblock" "c:\\blocks\\mynewandimprovedblock.dwg" ) Quote
dbroada Posted June 24, 2009 Posted June 24, 2009 you can RENAME your existing block to that of the new block and then -INSERT NewName= and accept the redefine Quote
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.