API Reference > Other Classes > OdResBuf Class > OdResBuf Methods > OdResBuf::setHandle Method
OdResBuf::setHandle Method
Syntax
C++
void setHandle(const OdDbHandle& vHandle);
Parameters 
Description 
const OdDbHandle& vHandle 
[in] Handle instance to be set. 

Sets the data content of the ResBuf object using the specified Handle instance only if the stored group code has the Handle type. 

 

This method generates the OdError_InvalidResBuf exception when the stored data type does not correspond to the Handle type. The passed value must be an instance of the OdDbHandle class or OdUInt64 class to be converted to Handle type.

Example of Entering and Displaying Tagged Data 

Getting and Setting Objects 

Determining the Data Type by Group Code 

OdResBuf::getHandle(), OdResBuf::setRestype(), OdDxfCode::_getType() methods 

OdDbHandle, OdUInt64 classes

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