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

 

Compares the layer values saved in a layer state to the current layer values in the drawing. This method compares everything except layer description. This method can also use VPLAYER and override settings of a viewport for comparison of visibility and overridable properties. Specify Null for the idVp argument to ignore viewport settings. 

Returns true if the layer state matches the layers in the drawing, false otherwise.

Visual Basic
Public Function CompareLayerStateToDb(
    name As string, 
    idVp As ObjectId
) As bool
C#
public bool CompareLayerStateToDb(
    string name, 
    ObjectId idVp
);
Parameters
Parameters 
Description 
string name 
Input name of layer state to be compared to the drawing. 
ObjectId idVp 
Input object ID of the viewport whose VPLAYER settings are to be used when comparing. 
Links
   Comments?