API Reference > Other Classes > OdDgResBuf Class > OdDgResBuf Methods > OdDgResBuf::setVector2d Method
OdDgResBuf::setVector2d Method
Syntax
C++
void setVector2d(const OdGeVector2d& geVector);
Parameters 
Description 
const OdGeVector2d& geVector 
[in] Two-dimensional vector instance to be set. 

Sets the data content of the ResBuf object using the specified two-dimensional vector 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 OdGeVector2d instance.

Example of Entering and Displaying Tagged Data 

Getting and Setting Points and Vectors 

Determining the Data Type by Group Code 

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

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