API Reference > OdDb Classes > OdDbLeader Class > OdDbLeader Methods > OdDbLeader::annotationOffset Method
OdDbLeader::annotationOffset Method
Syntax
C++
virtual OdGeVector3d annotationOffset() const;

Returns the annotation offset of this Leader entity (DXF 213).

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

 

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

 

dimgap() is subtracted if the annotation is to the right of the Leader entity (isHookLikeOnXDir() == true) and added if it is to the left.

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