API Reference > Other Classes > OdResBuf Class > OdResBuf Methods > OdResBuf::setPoint2d Method
OdResBuf::setPoint2d Method
Syntax
C++
void setPoint2d(const OdGePoint2d& gePoint);
Parameters 
Description 
const OdGePoint2d& gePoint 
[in] Two-dimensional point instance to be set. 

Sets the data content of the ResBuf object using the specified two-dimensional point instance only if the stored group code has a Point type. 

 

This method generates the OdError_InvalidResBuf exception when the stored data type does not correspond to the Point type. The passed value must be the OdGePoint2d instance.

Example of Entering and Displaying Tagged Data 

Getting and Setting Points and Vectors 

Determining the Data Type by Group Code 

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

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