Table of Contents

Property Annotation

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

Annotation

Gets or sets what the leader points to, as AutoCAD's Annotation gives its id: the MTEXT, TOLERANCE or INSERT of its handle (group 340) in the drawing; null where it points to none, or to a handle the drawing has no entity of.

public DxfEntity Annotation { get; set; }

Property Value

DxfEntity

Set, an entity of the same drawing, an MTEXT (a DxfMText), a TOLERANCE or an INSERT (a DxfBlockReference): its handle written in group 340 and what it is in group 73; null takes the handle out and makes group 73 that of no annotation. The leader is put among the reactors of the annotation (102 {ACAD_REACTORS), and taken out of those of the one it pointed to before, as AutoCAD keeps it. A copy added to another drawing points to none, its AnnoType NoAnnotation, unless it is copied with its annotation by WblockCloneObjects(IEnumerable<DxfEntity>, DxfBlockTableRecord), which points it to the annotation's copy.

Exceptions

ArgumentException

Thrown when the entity set is not an MTEXT, a TOLERANCE or an INSERT, or is not of the leader's drawing.

InvalidOperationException

Thrown when set on a leader that is erased.