Jump to content

change layer while editing (copy, move, rotate)


Recommended Posts

What I want to do is to combine two commands, editing (copy, move, rotate) and change layer.


I think I have seen this before somewhere but can't find now.


Will be happy if you could guide me.

Link to comment
Share on other sites

Or a lisp which simply copies to the current layer instead of having to pick an entity on the target layer, or select it's name from the dialog. Just make sure you use Enter/Space to stop the copy instead of Esc when you use the Multiple option:

(defun c:Copy2CurLay (/ ss el en)
 (setq el (entlast))
 (if (setq ss (ssget))
     (command "._COPY" ss "")
     (while (= (logand (getvar 'CmdActive) 1) 1) (command pause))
     (setq en (entnext el))
     (while en
       (entmod (list (cons -1 en) (cons 8 (getvar 'CLayer))))
       (setq en (entnext en))

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.

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