Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDgDatabase::assertWriteEnabled Method
Syntax
C++
void assertWriteEnabled(bool autoUndo = true, bool recordModified = true);

Throws an exception if this object is not open OdDg::kForWrite, and controls automatic undo and notification of modifications. 

 

Parameters
Description
autoUndo
[in] Specifies if automatic undo should be done.
recordModified
[in] Specifies if graphics are to be updated, and "openedForModify", "modified" and "modifiedGraphics" notifications are to be sent.

This function should be used only inside member functions that modify this object. It should be the first function called by these functions.

Copyright © 2002-2022. Open Design Alliance All rights reserved.