API Reference > OdDg Classes > OdDgElement Class > OdDgElement Methods > OdDgElement::erase Method
OdDgElement::erase Method
Syntax
C++
virtual OdResult erase(bool eraseIt = true);
Parameters 
Description 
bool eraseIt = true 
[in] Boolean to specify if object is to be erased or unerased. 

Sets the erased mode of this object. 

 

Erased objects are not deleted from the database or from memory. 

Erased objects are not filed when the database is saved or sent to a DGN file.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.