CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
Cesky English Deutsch
 Visitors: 835 
Plex.Earth connects AutoCAD and Google Earth

CAD tip CAD tip # 4874:

Question CAD 
 %  platform  category 
Q - question

Switching layers on/off automatically when entering Model or Layout tabs.

A - answer The free utility (reactor) LayLay (by CAD Studio) can automatically switch the visibility of selected layers when entering the Model tab or a Layout tab. This reactor extends the functions offered by the VPLAYER command.

You can define the layer list to switch on/off (the LAYLAY command) either manually as a comma delimited string or you can use the snapshot function which captures the current visibility status of the individual layers and then returns back to the saved status when entering the respective space (model/paper).

You can downlooad the LayLay application on our Download page


Load LayLay.VLX into every AutoCAD document in which you want to switch layers. You can load it automatically using ACAD.LSP/ACADDOC.LSP or with the _APPLOAD command.
Use the LAYLAY command to setup model- and layout-layers to autoswitch on or off when entering the respective modelspace or paperspace (layouts).

On every change between the modelspace and a layout in your DWG drawing LAYLAY automatically switches off and on the selected layers. You can define the layer list either manually ("LAYLAY Write") or automatically by a snapshot of current layer status - separately for model/paper ("LAYLAY ").
LayLay can be switched off with the "LAYLAY OFf" command.
Layer list and LayLay status is stored in the DWG file so you don't need to redefine them in subsequent AutoCAD sessions.
Non-existing layers are not created; even the current layer can be switched off.
100% *  CAD 
22.2.2006    18967×  
Comments   Tell a friend
applies to: AutoCAD 2007 · AutoCAD 2006 · AutoCAD 2005 ·

See also:
Tip 11847:Automatic UCS aligned with the current View (UCSauto switch).
Tip 11780:How to rename layouts by a specific attribute of the title block?
Tip 11171:Total number of layouts as a field.
Tip 10763:How to block specific AutoCAD commands?
Tip 10702:How to find which AutoCAD version was used to save a particular DWG drawing?

Back   All CAD Tips All CAD tips&tricks

How to display an invisible toolbar? « | » How to export object XYZ coordinates from AutoCAD drawing?

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   

Add .CIT raster format support to AutoCAD and Map and Civil 3D
CITin More info

Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.