API Reference > OdDb Classes > OdDbObject Class > OdDbObject Methods > OdDbObject::setField Method
OdDbObject::setField Method
Syntax
C++
virtual OdDbObjectId setField(const OdString& fieldName, OdDbField* pField);
Parameters 
Description 
const OdString& fieldName 
[in] Name (key) for the new entry.  
OdDbField* pField 
[in] Pointer to the field object. 

Returns the Object ID of the new entry.

Adds the specified field to the field dictionary of this object. 

 

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