API Reference > OdDb Classes > OdDbLeader Class > OdDbLeader Methods > attachAnnotation Method > OdDbLeader::attachAnnotation Method (OdDbObjectId)
OdDbLeader::attachAnnotation Method (OdDbObjectId)
Syntax
C++
virtual void attachAnnotation(OdDbObjectId annoId);
Parameters 
Description 
OdDbObjectId annoId 
[in] The Object ID of the annotation entity. 

Sets the annotation entity of this Leader entity (DXF 340). 

 

This Leader entity is appended to the persistent reactor list of the annotation entity. 

The annotation entity must be one of, or a subclass of one of, the following 

 

Name 
Entity type 
Description 
kMText 
OdDbMText 
MText 
kFcf 
OdDbFcf 
Feature control frame (Tolerance) 
kBlockRef 
OdDbBlockReference 
Block reference 

 

Other than annoId, the parameters are usually set with evaluateLeader().

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