Jump to content

Recommended Posts

Posted

Hi everyone, I encountered a problem yesterday. 

 

I have a Block.dwg file. I call the Block.dwg file into the A.dwg file and make edits within Block. After that, I run lisp. At this point, I encounter the following error.

 

When I insert the same Block again 

 

If I insert it with (command "-insert"). It is based on the block in A.dwg and the block I insert looks like it.

 

If I use the (vla-insertblock) function, it moves according to the inserted block and the blocks in A.dwg look like the block I inserted.

 

What is the reason?

Posted

Are you able to post a copy of the LISP so we can see what is happening? Sounds like your (command method is referring to the source file and the (vla- method is referring to your working file

Posted

I prepared a block dwg file and a example dwg file. And of course the lsp file for comparison.

I deleted the inner part of the block in the example dwg file. Without deleting this block, add the second block using the commands in the lsp file.

Note : link for vla-insertblock >> https://www.afralisp.net/archive/methods/lista/insertblock_method.htm (I just changed the item line to select it)

BLOCK.dwg EXAMPLE.dwg EXAMPLE.lsp

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