C++
Acad::ErrorStatus renameLayerState( const ACHAR * sName, const ACHAR * sNewName );
Description
Renames the layer state sName to be sNewName.
| Return Value | Description |
|---|---|
| Acad::eOk | The rename was successful |
| Acad::eDuplicateKey | The sNewName layer state "new" name already exists in the layer state dictionary |
| Acad::eKeyNotFound | The sName layer state "old" name was not found in the layer state dictionary, or the object ID of the layer state dictionary ID is Null |
Other Acad::ErrorStatus values unequal to Acad::eOk can come from an internal call to acdbOpenObject() while opening the layer states dictionary.
Parameters
| Parameters | Description |
|---|---|
| sName | Input existing layer state name |
| sNewName | Input new layer state name |