AcMapAnnotationManager:: CreateAnnotationText Function
Creates a new annotation text object in a template.
Acad::ErrorStatus CreateAnnotationText( AcDbObjectId & newAnnotationTextId, AcDbObjectId templateId );
File
AcMapAnnotationManager.h
Parameters |
Description |
newAnnotationTextId |
Output object ID of the newly created annotation text object. |
templateId |
Input object ID of the annotation template to add the annotation text object to. |
Returns
Returns Acad::eOk if successful; otherwise, returns an error code.
Remarks
The new annotation text object will have default property values (that is, no expression overrides). At minimum, you should set the new object's annotation string (kAttDefAnnotationString expression) immediately after creation, typically with SetExpressionString().
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].