bdeAddAnnotationToDiagram

Adds an annotation to a diagram.

Syntax

bdeAddAnnotationToDiagram(diagram, annotation)

Inputs

diagram
The diagram in which to add the annotation.
Type: BDE diagram
annotation
Annotation that is to be added to the diagram.
Type: BDE annotation

Examples

Add an annotation to a diagram:

          diagram = bdeGetCurrentDiagram();
          annotation = bdeCreateAnnotationText('annotation1', 'This is a new annotation');
          bdeAddAnnotationToDiagram(diagram, annotation);