API Reference > Namespaces > OdPdfPublish Namespace > Classes > OdCADReference Class > OdCADReference Methods > OdCADReference::setTranslation Method
OdCADReference::setTranslation Method
Syntax
C++
void setTranslation(const OdGeVector2d& vec);
Parameters 
Description 
const OdGeVector2d& vec 
[in] A new translation vector object. 

Sets the translation vector for the CAD reference.

If you use the addCADReference() method of the OdPage class to add a CAD reference to a page, this method has no effect.

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