Jump to content

Recommended Posts

Posted

Is There Any Lisp Select Named Layer Without Click On It?

For Example I Need Select Layer Called Divide Without Click On It.

Posted
(defun c:s1()(sssetfirst nil(ssget "_X" '((8 . "DIVIDE"))))(princ))

Posted

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

Posted

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

  • 2 weeks later...

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