API Reference > OdDb Classes > OdDbBlockReference Class > OdDbBlockReference Methods > OdDbBlockReference::openAttribute Method
OdDbBlockReference::openAttribute Method
Syntax
C++
OdDbAttributePtr openAttribute(OdDbObjectId ObjId, OdDb::OpenMode mode, bool openErasedOne = false);
Parameters 
Description 
OdDb::OpenMode mode 
[in] Mode in which the attribute is to be opened.  
bool openErasedOne = false 
[in] If and only if true, erased objects will be opened. 
objId 
[in] Object ID of the attribute to be opened.  

Returns a SmartPointer to the opened object if successful, otherwise a null SmartPointer.

Opens an attribute owned by this block reference. 

 

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