C++
Acad::ErrorStatus getLastRestoredLayerState( AcString & sName, AcDbObjectId & restoredLSId );
Description
Returns the name and objectId of the last layer state restored in the drawing. This value is saved by the restoreLayerState() method so any means of restoring a layer state will automatically set that value.
Returns Acad::eOk if Successful; returns Acad::eNotInitializedYet if the database is NULL; returns Acad::eKeyNotFound if the object ID of the layer state dictionary is NULL; returns Acad::eNullObjectId if the layer state dictionary ID is NULL.
Parameters
Parameters | Description |
---|---|
sName | Returned name of the last layer state restored in the drawing |
restoredLSId | Returned objectId of the last layer state restored in the drawing |