Jump to content

Moving Object to Layer Using Shortcut Keys


SeaRR85

Recommended Posts

I'm trying to figure out how to select an object then hit something like CTRL+L to move that object to a specific layer. I tried a simple Macro:

 

-Layer;S;"Name of My Layer"

 

But when I select the object that I want to move on that layer, it will deselect when I run the Macro. Any ideas? I'm using AutoCAD 2007 LT but this is for someone using full blown AutoCAD 2007. I was trying the easier approach with Macros but a LISP routine might do. Thanks!

Link to comment
Share on other sites

macro... put on a button

^c^cselect si \chprop;p;;la;LAYERNAME;;

 

lisp ... add to your acaddoc.lsp file

(defun c:cl () (command "chprop" (entsel) "la" "LAYERNAME" ""))

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