codebase="hhctrl.ocx#Version=4,73,8561,0"> codebase="hhctrl.ocx#Version=4,73,8561,0" > codebase="hhctrl.ocx#Version=4,73,8561,0" >
 
  LayerStateManager object

Saves and restores layer settings.

VBA class name:

LayerStateManager 

Access via:

GetInterfaceObject("AutoCAD.AcadLayerStateManager.16") 

Methods

Delete

Export

Import

Rename

Restore

Save

SetDatabase

Properties

Mask

Events  

Remarks

The LayerStateManager object provides a set of functions for working with saved layer settings. The LayerStateManager manipulates XRecord objects that define the properties of a layer. These XRecords are stored in the ACAD_LAYERSTATE dictionary, which is an extension dictionary in the drawing's Layers collection. (An extension dictionary is a mechanism for attaching data to objects. Every object can have an extension dictionary.) For more information about how AutoCAD saves layer settings, see "Understand How AutoCAD Saves Layer Settings" in the ActiveX and VBA Developer's Guide.

After you retrieve the LayerStateManager object, you must associate a database with it before you can access the object's methods. Use the SetDatabase method to associate a database with the LayerStateManager object.

 

   Comments?