akgbmb Posted February 6, 2014 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
eldon Posted February 6, 2014 Posted February 6, 2014 Have you tried the existing command XPLODE? Quote
MSasu Posted February 6, 2014 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
akgbmb Posted February 6, 2014 Author 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
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.