MR MAN Posted December 4, 2008 Posted December 4, 2008 Is There Any Lisp Select Named Layer Without Click On It? For Example I Need Select Layer Called Divide Without Click On It. Quote
ASMI Posted December 4, 2008 Posted December 4, 2008 (defun c:s1()(sssetfirst nil(ssget "_X" '((8 . "DIVIDE"))))(princ)) Quote
Lee Mac Posted December 4, 2008 Posted December 4, 2008 Did you want to select everything on the "DIVIDE" layer, or just go to the layer? ASMI's code will select everything on the layer, but below will just set it as the current layer: (defun c:div () (setvar "cmdecho" 0) (if (not (tblsearch "LAYER" "DIVIDE")) (command "-layer" "m" "DIVIDE" "") (setvar "clayer" "DIVIDE") ) ;_ end if (setvar "cmdecho" 1) (princ) ) ;_ end defun Quote
Lee Mac Posted December 4, 2008 Posted December 4, 2008 Or, if indeed you just want to change the layer with a shortcut: see here: http://www.cadtutor.net/forum/showthread.php?t=24782 Hope this helps 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.