The LayerStateManager object is similar to the AutoCAD Utility object in that it provides a set of functions for manipulating data. These functions are methods for working with saved layer settings. Use the following LayerStateManager methods to work with saved layer settings:
Deletes a saved layer setting.
Exports the specified saved layer setting to a file.
Imports a saved layer setting from the specified file.
Renames a saved layer setting.
Restores the specified layer setting in the current drawing.
Saves the specified layer states and properties.
Associates an AutoCAD database with the LayerStateManager.
To access the LayerStateManager object, use the GetInterfaceObject method.
Dim oLSM As AcadLayerStateManager
Set oLSM = ThisDrawing.Application. _
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.