Jump to content

Change into current layer Even Block object also with support of EXPLODE


akgbmb

Recommended Posts

Is there any lisp to do the following?

> Select objects to be changed to the current layer

> if selected object is block then EXPLODE and change into current layer

> Select objects’s color change into ByLayer

Link to comment
Share on other sites

You may exploit the fact that the entities resulted by explode will be retained as Previous selection set:

(if (setq ssetBlock (ssget "_:S:E" '((0 . "INSERT"))))
(command "_EXPLODE" (ssname ssetBlock 0)
         "_CHPROP" "_P" "" "_LA" (getvar "CLAYER") "_C" "BYLAYER" "")
)

Link to comment
Share on other sites

Dear eldon sir,

some time i have to select normal lines or circles or ellipses (non block items).

xplode for block only.

i have to change selected object into current layer & color change into ByLayer

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