CADkitt Posted May 18, 2010 Posted May 18, 2010 trying to make this simple script but I get a bad function A10 on output. I also don't know how to use the =. (reninsatt "A10" "new block NEW LOGO" "Template_New_2010") (defun reninsatt(oud new filename/) (progn (command "-rename" "b" oud new) (command "_.-insert" new = filename "y" nil) (command "_.attsync" "n" new) ) (princ) ) Quote
alanjt Posted May 18, 2010 Posted May 18, 2010 I don't think you can insert blocks that exist in another file, with the INSERT command. You can only insert the file itself. Quote
dbroada Posted May 18, 2010 Posted May 18, 2010 I don't know about in LISP but in script it is ExistBlockName=NewBlockName to redefine the existing block to the definition in an external dwg file. Note that there are no spaces. Quote
CADkitt Posted May 18, 2010 Author Posted May 18, 2010 I don't think you can insert blocks that exist in another file, with the INSERT command. You can only insert the file itself. yes, it inserts a file (exported wblock) but it inserts it as the name before the = so it replaces an old block which I want. 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.