Table of Contents

Property Annotative

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

Annotative

Gets or sets whether the object is annotative, as AutoCAD's Annotative: drawn at the size its scale gives it on the sheet, each scale it is shown at a context of its own (HasContext(DxfObjectContext)).

public DxfAnnotativeStates Annotative { get; set; }

Property Value

DxfAnnotativeStates

Get, as AutoCAD keeps it: for a TEXT, an MTEXT, an attribute, a dimension, a leader, a multileader, a tolerance, a hatch, a text style, a dimension style and a block, the flag of its extended data AcadAnnotative, the second 1070 of AnnotativeData, False where it has none; a multileader is annotative by its own group 293 (EnableAnnotationScale) as well; an INSERT by its block, that of a dynamic block by the dynamic block where its anonymous block is not; an ATTRIB by its INSERT, whatever its own data says, as AutoCAD 2021 reads it: the attribute ATT_DVSUP of AutoCAD's sample, whose AcadAnnotative says 0, is annotative in its annotative valve, and one of contexts is not in a block that is not (check D35b); in a block that is not annotative, an ATTRIB whose own data says 1 and that holds a context is, as AutoCAD 2021 read the attribute it made of an annotative definition in a block that was not, and one that says 1 and holds none is not (check D35c); a multileader style by its group 296. NotApplicable for every other object, as a line.

Set True, a text style or a dimension style is given the extended data AcadAnnotative (1000 AnnotativeData, then 1070 1 and 1070 1 in braces), which is all AutoCAD keeps of it; a multileader style is given 1 in its group 296, and no extended data, as AutoCAD 2021 keeps the flag of the style it makes annotative (0 when set false). Set False, the extended data is taken out, with AcadAnnoPO, a multileader's 293 is made 0, and an entity's contexts go with the dictionary AcDbContextDataManager of its extension dictionary, of any kind of entity: its own groups, those of the scale it was last shown at, stay. A value the object has changes nothing. A block set true is given the same data. A TEXT, an MTEXT, an attribute definition, a HATCH or a multileader set true is made annotative as AutoCAD 2021 makes it: its extended data (a multileader its 293 of 1), an extension dictionary with AcDbContextDataManager and ACDB_ANNOTATIONSCALES and in it the default context, *A1, of the scale CANNOSCALE names (1:1 in paper space), its record kept except for a hatch's pattern lines, which are multiplied by 1 over the scale; AddContext(DxfObjectContext) shows it at others.

Exceptions

ArgumentException

Thrown when the value set is NotApplicable, or not one of the enumeration.

InvalidOperationException

Thrown when set on an object that is never annotative, as AutoCAD answers eNotApplicable; on an object in no file or erased; true on a style or an entity in a file older than R2007 (AC1021); or true on an entity when the drawing's list has no scale named as CANNOSCALE says.

NotSupportedException

Thrown when set true on a dimension, a leader, a tolerance or an attribute, which AutoCAD lays out again at each scale (the presenter makes a dimension annotative by laying its picture out itself); set on an INSERT (annotative as its block is); or set false on a block.