Jump to content

select all objects on the current layer


motee-z

Recommended Posts

As Dipali says, it can be done without LISP, but if it really was LISP you are after:

 

(defun c:sel ()
   (sssetfirst nil (ssget "X" (list (cons 8 (getvar "clayer")))))
   (princ)
) ;_  end defun

To be honest, the "qselect" command is good for filtering through a range of entities and layers, but for speed and convenience - if its only the current layer you would like to select each time - this LISP is much quicker.

 

Hope this helps

Edited by Lee Mac
Link to comment
Share on other sites

  • 7 years later...
As Dipali says, it can be done without LISP, but if it really was LISP you are after:

 

(defun c:sel ()
   (sssetfirst nil (ssget "X" (list (cons 8 (getvar "clayer")))))
   (princ)
) ;_  end defun

To be honest, the "qselect" command is good for filtering through a range of entities and layers, but for speed and convenience - if its only the current layer you would like to select each time - this LISP is much quicker.

 

Hope this helps

 

EDIT: Just been browsing the forums and found the Media Encoder posted by Mr T, and thought I'd try it out :P

 

Great lisp! Thank you. Is a great time saver.

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