rcb007 Posted December 20, 2021 Posted December 20, 2021 My brain is not functioning... I am trying to select a few objects, then it would select all the similar objects and finally isolate those objects. (defun c:test () (command "aecselectsimilar" (ssget) "" ) (command "_isolateobjects" "p" "") (princ)) Quote
mhupp Posted December 20, 2021 Posted December 20, 2021 (edited) No need for ssget just type ss to run command. Sorry didn't see you wanted to isolate objects. Select objects and similar objects will be isolated select nothing to unhide all hidden objects. ;;----------------------------------------------------------------------------;; ;; Select Similar Objects & isolate shortcut (defun C:SSO () (if (setq SS (ssget)) (progn (command "_.Selectsimilar" SS "") (command "_.isolate") ;no need for "P" objects are already highlighted from previous command. ) (command "_.unisolate") ) (princ) ) Edited December 20, 2021 by mhupp 1 Quote
rcb007 Posted December 21, 2021 Author Posted December 21, 2021 (edited) Thank you MHupp. Tha ;;----------------------------------------------------------------------------;; ;; Select Similar Objects & isolate shortcut (defun C:SSO () (if (setq SS (ssget)) (progn (command "_.Selectsimilar" SS "") (command "_.isolateobjects") ;no need for "P" objects are already highlighted from previous command. ) (command "_.unisolateobjects") ) (princ) ) t is what i was tryin to get to work. Edited December 21, 2021 by rcb007 1 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.