Table of Contents

Method RemoveContext

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

RemoveContext(DxfObjectContext)

Stops showing an annotative object at a scale, as AutoCAD's RemoveContext and its OBJECTSCALE Delete do: its context of the scale erased with its entry of ACDB_ANNOTATIONSCALES, of any kind of object, every other context kept as it is; the picture block of a dimension's context goes with it, and an INSERT's attributes lose the scale too. Where the context is the default, the next in the order of the dictionary becomes it (its 290 of 1) and the record takes that context's data, as AutoCAD 2021 rewrites it: a TEXT of 125 at 1:50 with 1:100 beside it is 250 high once 1:50 is deleted, an MTEXT's width the context's, a HATCH's pattern lines, an INSERT's factors and place, a dimension's block and the middle of its words, and a multileader's context data those of the new default. The entry added after is named as AutoCAD names it within a session, one more than the highest number the dictionary has held: after *A2 was deleted, *A3. A scale the object is not shown at changes nothing.

public void RemoveContext(DxfObjectContext context)

Parameters

context DxfObjectContext

The scale.

Exceptions

ArgumentNullException

Thrown when the scale is null.

InvalidOperationException

Thrown when the scale is the last the object is shown at, as AutoCAD keeps one (make it not annotative by Annotative instead); when the object is erased; or when it is a copy in no file that carries its original's contexts, until it is added to a drawing.