Jump to content

Recommended Posts

Posted

Today, with surprise I found that when I copy grouped objects to a new drawing, they break down into separate entities. The group of objects are named, selectable. Is there a way to keep this groups of objects into the new drawing?

Thanks!

Posted

thank you hanhphuc!

I will try with wblock and i will callback of the rezult.

Posted

I tried this approach with wblock. Did block with the selected group. Then copy and paste this block into new drawing. In The new drawing explode the block and not receiving group. May be this is not the way. :(

Posted

Try inserting the block into the new drawing instead of C&P.

  • 3 weeks later...
Posted
Try inserting the block into the new drawing instead of C&P.

 

does not work. The grouped objects are dissociate.

Posted

I believe you are supposed to leave it a block.

 

Any particular reason you need a group instead of a block?

 

Might be easier to just regroup them after copying the block.

 

I found this Macro for a button. I haven't tested it, it may need adjustments.

 

^C^C_pasteclip;\_explode;_last;_-group;_create;*;;_previous;;

 

Maybe someone will write you a LISP, but I really do not see the reason.

Posted

Adapted from SLW210's post.

Select and copy objects, then paste as block, explode, and group previous selection.

^C^C_pasteblock;\_explode;_last;_-group;_create;*;;_previous;;

I just replaced _pasteclip with _pasteblock

Added the macro: Paste as Group

Description: Pastes objects from the Clipboard into the current drawing as a group

Image: RCDATA_16_NEWGROUP

This one will purge the block after exploding and grouping the objects:

^C^C_pasteblock;\(setq LstBlk(vla-get-Name (vlax-ename->vla-object (entlast))));_explode;_last;_-group;_create;*;;_previous;;(command "-purge" "B" LstBlk "N");

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