API Reference > OdDb Classes > OdDbBlockReference Class > OdDbBlockReference Methods > OdDbBlockReference::appendAttribute Method
OdDbBlockReference::appendAttribute Method
Syntax
C++
OdDbObjectId appendAttribute(OdDbAttribute* pAttr);
Parameters 
Description 
OdDbAttribute* pAttr 
[in] Pointer to the attribute to be added. 

Returns the Object ID of the newly appended attribute.

Appends the specified OdDbAttribute to the attribute list of this block reference. 

 

This block reference becomes the owner of the passed in attribute, and the attribute is added to the database to which this block reference belongs. This block reference must be added to a database before calling this function. The object's attribute list should not be added by the client application.

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