The LayerStateManager object provides a set of functions for creating and manipulating saved layer states. Use the following LayerStateManager functions for working with layer states:
Deletes a saved layer state.
Exports the specified saved layer state to a LAS file.
Imports a layer state from the specified LAS file.
Imports a layer state from another database.
Renames a saved layer state.
Restores the specified layer state in the current drawing.
Saves the specified layer state and its properties.
The LayerStateManager object for a database can be accessed by using the LayerManagerState property of a Database object.
Document acDoc = Application.DocumentManager.MdiActiveDocument; Database acCurDb = acDoc.Database; LayerStateManager acLyrStMan; acLyrStMan = acCurDb.LayerStateManager;