API Reference > Classes > Database Classes > OdBmElement Class > OdBmElement Methods > OdBmElement::assertWriteEnabled Method
OdBmElement::assertWriteEnabled Method
Syntax
C++
void assertWriteEnabled();

Throws an exception if this object is not open OdDb::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 (c) 2002-2021. Open Design Alliance. All rights reserved.