API Reference > Other Classes > OdResBuf Class > OdResBuf Methods > newRb Method > OdResBuf::newRb Method (int, OdGePoint3d&)
OdResBuf::newRb Method (int, OdGePoint3d&)
Syntax
C++
static OdResBufPtr newRb(int resType, const OdGePoint3d& resVal);
Parameters 
Description 
int resType 
[in] Group code as an Integer value.  
const OdGePoint3d& resVal 
[in] Value of the corresponding type. 

Create an instance of the ResBuf object of the specified data type and initialized the specified data value. 

 

This method generate the OdError_InvalidResBuf exception when the specified data value does not correspond to the specified data type.

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