Jump to content

-block, objects disappear


OMEGA-ThundeR

Recommended Posts

Hello,

 

I'm trying to create a block through a lisp. The normal BLOCK command has an visual interface, so i use the -BLOCK command to use the commandline.

 

However, when i create a block this way the objects that are in the block disappear, and the block is not in de insert list.

 

Part of my lisp:

 

(Defun C:VC ( / VP)
(prompt "Select objects to blockerize: ")
(setq VP(ssget))
(command "-block" "Block-temp" pause "P" "")

 

It works as is, but with the problem of the objects i turn in to a block disappear. When i make a block the 'normal' way it all goes well...

 

What am i doing wrong? (it's not working even if i don't use the lisp)

Link to comment
Share on other sites

Just guessing, but have you turned check box not to delete objects while creating block... Check BLOCK command - it should bring dialog box with this check button... Perhaps there is sysvar for this, investigate...

Link to comment
Share on other sites

The -BLOCK command will create a block definition with the given name containing the selected objects - you will then need to insert a reference of such block using the -INSERT command, or, if you wish to retain the original objects, you should copy the selection before supplying the objects to the -BLOCK command.

 

Here are some alternatives: Objects to Block.

Link to comment
Share on other sites

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