motee-z Posted December 9, 2008 Share Posted December 9, 2008 Hello friends i wish to have a lisp routine to select all objects on the current layer any help will be highly apreciated thanks Quote Link to comment Share on other sites More sharing options...
Dipali Posted December 9, 2008 Share Posted December 9, 2008 can be done without lisp just with 'qselect' command Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted December 9, 2008 Share Posted December 9, 2008 (edited) 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 December 17, 2015 by Lee Mac Quote Link to comment Share on other sites More sharing options...
lpseifert Posted December 9, 2008 Share Posted December 9, 2008 Express tools' Getsel command. Quote Link to comment Share on other sites More sharing options...
shtirlits Posted December 17, 2015 Share Posted December 17, 2015 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 Great lisp! Thank you. Is a great time saver. 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.