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

 

Saves the current state of the layer table to the layer state specified by name. This function also captures the VPLAYER settings for the viewport specified. Specify Null for the id argument to capture a layer state without VPLAYER settings.

Visual Basic
Public Function SaveLayerState(
    name As string, 
    mask As LayerStateMasks, 
    id As ObjectId
) As void
C#
public void SaveLayerState(
    string name, 
    LayerStateMasks mask, 
    ObjectId id
);
Parameters
Parameters 
Description 
string name 
Input name of layer state to save 
LayerStateMasks mask 
Input mask to apply to layer state 
ObjectId id 
Input object ID of the viewport whose VPLAYER setting is to be captured 
Links
   Comments?