LayerStateManager Object (ActiveX)

Saves and restores layer settings.

Supported Platforms: Windows only

Class Information

Class Name

AcadLayerStateManager

Object Inheritance
Object
   AcadLayerStateManager
Create Using

VBA

Not applicable
Access Via

VBA

GetInterfaceObject("AutoCAD.AcadLayerStateManager.20")

Members

These members are part of this object:

Methods

Properties

Events

Delete

Export

Import

Rename

Restore

Save

SetDatabase

Mask

None

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.)

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.