API Reference > Other Classes > OdDgResBuf Class > OdDgResBuf Methods > OdDgResBuf::setResBuf Method
OdDgResBuf::setResBuf Method
Syntax
C++
void setResBuf(const OdDgResBuf* pResBuf);
Parameters 
Description 
const OdDgResBuf* pResBuf 
[in] Pointer to the existing ResBuf instance to be set. 

Sets the data content of the ResBuf object using the specified ResBuf instance only if the group code is set to OdResBuf::kRtResBuf. 

 

This method generates the OdError_InvalidResBuf exception when the stored group code is not set to kRtResBuf. The OdDxfCode::_getType() method returns Unknown type for it.

Example of Entering and Displaying Tagged Data 

Getting and Setting Specific Data (color 

OdResBuf::getResBuf(), OdResBuf::setRestype() methods

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