Jump to content

Recommended Posts

Posted

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

Posted

I don't think you can insert blocks that exist in another file, with the INSERT command. You can only insert the file itself.

Posted

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.

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

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