Jump to content

Select Similar with an isolate objects


rcb007

Recommended Posts

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

 

 

Link to comment
Share on other sites

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 by mhupp
  • Like 1
Link to comment
Share on other sites

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 by rcb007
  • Like 1
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...