var=var2?
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)) I don't think you can insert blocks that exist in another file, with the INSERT command. You can only insert the file itself. 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. 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.
页:
[1]