API Reference > OdDg Classes > OdDgElement Class > OdDgElement Methods > OdDgElement::assertWriteEnabled Method
OdDgElement::assertWriteEnabled Method
Syntax
C++
void assertWriteEnabled(bool autoUndo = true, bool recordModified = true);
Parameters 
Description 
bool autoUndo = true 
[in] Specifies if automatic undo should be done.  
bool recordModified = true 
[in] Specifies if graphics are to be updated, and "openedForModify", "modified" and "modifiedGraphics" notifications are to be sent. 

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

 

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–2020. Open Design Alliance. All rights reserved.