AutoCAD/thaw layer lisp

Advertisement


Question
Hello, I'm looking for a lisp routine that will allow me to choose a layer that I would like to thaw by selecting an entity on that layer.  I imagine that it would have to temporarily thaw all layers and retain the label of the layer that I pick, then "refreeze" all of the layers that were frozen prior to calling up the lisp routine, except for of course the layer that I chose. Any help would be great, thank you very much!

Answer
That's a little different than what is available out there now. It certainly could be written. It's close to a routine called isolate -
if you want to end up with that one layer only on. The manual step would be you'd have to thaw/on everything, remembering current states first.
Usually the 'best practice' is to use freeze/thaw for permanently off stuff, and on/off for temporary visibility changes. There are plenty of routines like that available on the net.

AutoCAD

All Answers


Answers by Expert:


Ask Experts

Volunteer


Scott Cook

Expertise

I`ve been using AutoCAD since 1987 and programming AutoLISP nearly as long. I can answer questions about programming AutoCAD (except ARX) and production enhancement techniques. I cannot answer questions about AutoCAD crashes or DWG corruption. AutoCAD PROGRAMMING (menus, lisp) related questions only!

Experience

Since 1987. Author of Plot2000 software for for AutoCAD, http://www.plot2000.com. PROGRAMMING QUESTIONS ONLY PLEASE. Questions that are NOT related to programming or AutoCAD customization (menus and lisp only please) are outside the scope of my volunteer services and will NOT BE ANSWERED.

©2012 About.com, a part of The New York Times Company. All rights reserved.