akgbmb Posted February 6, 2014 Share Posted February 6, 2014 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 Quote Link to comment Share on other sites More sharing options...
eldon Posted February 6, 2014 Share Posted February 6, 2014 Have you tried the existing command XPLODE? Quote Link to comment Share on other sites More sharing options...
MSasu Posted February 6, 2014 Share Posted February 6, 2014 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" "") ) Quote Link to comment Share on other sites More sharing options...
akgbmb Posted February 6, 2014 Author Share Posted February 6, 2014 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.