Autodesk.AutoCAD.DatabaseServices Namespace > LayerStateManager Class > LayerStateManager Methods
LayerStateManager Methods
Methods
Method 
Description 

Compares the layer values saved in a layer state to the current layer values in the drawing. This method compares... more 

Deletes the specified layer state. 

ExportLayerState() reads the passed-in layer state name and exports the corresponding layer state to the export file. The layer state... more 

Retrieves the description set by SetLayerStateDescription()

Gets an array of the names of all the layers that are saved in a layer state. If bInvert is... more 

Gets the mask for the named layer state. 

Gets an array of the names of all the layer states. 

Checks if the layer state name is present and returns true if so, and false otherwise. 

ImportLayerState() reads the passed-in filename (saved by a previous export) and extracts layer states to import. If an import file... more 

Imports the layer state name passed in name from the open drawing file pointer passed in database. This method... more 

Returns a Boolean indicating whether the given layer state has viewport data associated with it. A layer state has viewport... more 

Returns ObjectId of the layer states extension dictionary (within the layer table extension dictionary) or ObjectId(NULL) if the database... more 

Renames the layer state name to be newName

Restores the layer state name and the VPLAYER settings for the viewport specified. Also restores attributes specified in clientMask.... more 

Saves the current state of the layer table to the layer state specified by name. This function also captures... more 

Sets an arbitrary description string on the layer state. 

Updates the mask used when restoring a layer state. 
   Comments?