API Reference > Other Classes > OdDgResBuf Class > OdDgResBuf Methods > OdDgResBuf::setHandle Method
OdDgResBuf::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–2020. Open Design Alliance. All rights reserved.