Updating and Refreshing Annotations

AutoCAD Map 3D .NET API

 
Updating and Refreshing Annotations
 
 
 

Once inserted, annotation references do not change unless they are explicitly changed. For example, if the object data for a drawing object changes, any anotations that use the object data will still display the original value.

There are two operations for revising existing annotation references:

  • Updating
  • Refreshing

Updating removes and recreates all the annotations that use a template. Refreshing re-evaluates the annotation expressions, but does not remove out-of-date annotations.

To update annotations, call AnnotationTemplate.UpdateReferences().

newTemplate.UpdateReferences(True)

To refresh annotations, call AnnotationTemplate.RefreshReferences().

newTemplate.RefreshReferences(True)