C++
bool compareLayerStateToDb( const ACHAR* sName, const AcDbObjectId& idVp );
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 AcDbObjectId::kNull for the idVp argument to ignore viewport settings.
Returns true if the layer state matches the layers in the drawing, false otherwise.
Parameters
Parameters | Description |
---|---|
sName | Input name of layer state to be compared to the drawing. |
idVp | Input object ID of the viewport whose VPLAYER settings are to be used when comparing. |