Tipster Sam Lucido sends us a LISP routine he made for AutoCAD to instantly display the current layer of any selected object.
"In AutoCAD, there are many ways to find out which layer an object resides on. Have you ever wanted to pick an object and have a dialog box pop up to tell you the layer? What-Layer.lsp does just that. Simply type WL at the Command prompt and select an object. I used the alert function within LISP to have the name displayed in an alert box on screen. Press OK to exit. Simple and effective, this routine is good for CAD managers."
Notes from Cadalyst Tip Patrol: This tipster is right; there are many ways to find out which layer an object is on. If it's turned on, you can use Roll Over Tool Tips: Select an object and its basic properties will be displayed. The same goes for Quick Properties. These two functions will give you the layer information you seek, but many times users find them intrusive. Sam had a need in AutoCAD so he wrote a LISP routine to fill that need. That's what makes AutoCAD so fantastic — if you have a need, you can probably fill it yourself. |