C++
Acad::ErrorStatus closeAndPage( Adesk::Boolean onlyWhenClean = true );
Description
Closes the object and pages it if the object pager is turned on. All changes made to the object since it was opened are committed to the database, and a "closed" notification (as well as any other appropriate notification such as "modified", "erased", and so on) is sent.
Returns Acad::eOk if successful.
If the object is not in an AcDbDatabase yet, then Acad::eNoDatabase is returned.
If the object is sending notification, then Acad::eCloseWasNotifying is returned.
If the subClose() call made within the close() method returns anything other than Acad::eOk, then that ErrorStatus is returned.
Note
This function is only available in AutoCAD Release 13c4a and beyond.
Parameters
Parameters | Description |
---|---|
onlyWhenClean | Input Boolean indicating to turn off or on undo recording |