API Reference > OdDb Classes > OdDbLeader Class > OdDbLeader Methods > OdDbLeader::setAnnotationOffset Method
OdDbLeader::setAnnotationOffset Method
Syntax
C++
virtual void setAnnotationOffset(const OdGeVector3d& offset);
Parameters 
Description 
const OdGeVector3d& offset 
[in] Annotation offset. 

Sets the annotation offset of this leader (DXF 213). 

 

The annotation offset determines the final leader endpoint of this Leader entity 

 

annoType() 
Final Leader Endpoint 
kMText 
annotationOffset() + OdGeVector3d(± dimgap(), 0, 0) + OdDbMText::location() 
kFcf 
annotationOffset() + OdGeVector3d(± dimgap(), 0, 0) + OdDbFcf::location() 
kBlockRef 
annotationOffset() + OdDbBlockReference::position() 
kNoAnno 
lastVertex() 

 

dimgap() is added if isHookLikeOnXDir() is true, subtracted if it is false.

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