rcb007 Posted December 20, 2021 Share 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 Link to comment Share on other sites More sharing options...
mhupp Posted December 20, 2021 Share 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 Link to comment Share on other sites More sharing options...
rcb007 Posted December 21, 2021 Author Share 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 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.