Table of Contents

Method HasContext

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

HasContext(DxfObjectContext)

Gets whether the object is shown at a scale, as AutoCAD's HasContext: whether a context under ACDB_ANNOTATIONSCALES of AcDbContextDataManager of its extension dictionary points at the scale's SCALE, by the first 340 of its subclass AcDbAnnotScaleObjectContextData, of any kind of context; never for an object that is never annotative (Annotative NotApplicable), as a LINE, a CIRCLE or a layer, whatever records it holds, as AutoCAD 2021 answered for eleven kinds of entity handed a TEXT's contexts by HandOverTo(DxfDBObject, bool, bool) (check D37), which keeps them. Those two groups, with the default flag (290 of AcDbObjectContextData), are all the library reads of a context, but for the placing of the context of a TEXT, an attribute or a definition, an MTEXT and an INSERT, which Position, Location and Position read and write; the rest of AutoCAD's record of it is kept as it is. A copy in no file (Clone()) carries the contexts of its original, and is shown at the scales of its original's drawing.

public bool HasContext(DxfObjectContext context)

Parameters

context DxfObjectContext

The scale, of the object's drawing's list.

Returns

bool

Whether it is; false for a scale of another drawing or in none, for an object never annotative, and for an object with no contexts, as one not annotative, but for an annotative INSERT, or an ATTRIB of one, that holds none, which is shown at the scale named 1:1, whatever CANNOSCALE says, as AutoCAD 2021 read one (check D35b).

Exceptions

ArgumentNullException

Thrown when the scale is null.