Attaching Annotations
List of: Discussion Topic
Subjects: Feature Naming
Contents: Kernel

During the modeling operation, annotations are attached to the annotated entities through ATTRIB_ANNOTATION. This associates an ANNOTATION with its owning ENTITY and allows quick updating of the annotations as the operation progresses. These attributes are normally removed when the operation completes.

The ATTRIB_ANNOTATION instances are the specific ANNOTATION derived instances, such as SWEEP_ANNO_VERTEX_TOP. Because the ATTRIB_ANNOTATION does not normally persist, the only way to get the annotations is by using api_find_annotations.

The ATTRIB_ANNOTATION may be retained by setting the unhook_annotations option to FALSE (for example, when working in Scheme AIDE with annotations). The annotation option turns on the creation of the annotations in a modeling operation. If the unhook_annotations option is not turned off, the modeling operation automatically clears the ATTRIB_ANNOTATION, which would remove the handles and data that Scheme AIDE uses.
PDF/KERN/08ANNO.PDF
HTM/DATA/KERN/KERN/08ANNO/0001.HTM