[Search tip detail and code files using keywords, tip number, author name, etc ]
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Identify Layer
Tip# 3616 By Samuel Lucido On 04-Apr-2011
Rated By 1 users Downloaded : 448
Categories : Layer Properties
Software type : AutoCAD 2011
Rename File To : What-Layer.lsp
Display the current layer of any selected object.

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.


Average Rating:

User comments