C++
Acad::ErrorStatus downgradeOpen();
Description
Downgrades the object from being open AcDb::kForWrite, to being AcDb::kForRead. In the process, all changes made to the object while it was open for write are committed to the database and appropriate notification is sent.
Note
This function does not need to be preceded by an upgradeOpen() call -- it just requires that the object be open for write when it is called.
Returns Acad::eOk if successful. If the object is not open for write when this function is called, Adesk::eNotOpenForWrite is returned.