Table of Contents

Method GetContextCollection

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

GetContextCollection(string)

Gets a collection of contexts by its name, as AutoCAD's GetContextCollection: ACDB_ANNOTATIONSCALES, letters of either case the same, the drawing's list of scales. db.ObjectContextManager.GetContextCollection("ACDB_ANNOTATIONSCALES").GetContext("1:50") gives the scale 1:50.

public DxfObjectContextCollection GetContextCollection(string collectionName)

Parameters

collectionName string

The name of the collection.

Returns

DxfObjectContextCollection

The collection; null for any other name, as AutoCAD gives none for a collection not registered.

Exceptions

ArgumentNullException

Thrown when the name is null.