Table of Contents

Class DxfAnnotationScale

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

A scale of the drawing's list of scales, as AutoCAD's AnnotationScale: a SCALE of the dictionary ACAD_SCALELIST, its name (group 300) and so many units of the paper (140) to so many of the drawing (141). The scale 1:50 of a plan in millimetres is 1 of the paper to 50 of the drawing, Scale 0.02: 1 mm of the sheet stands for 50 mm of the drawing.

public sealed class DxfAnnotationScale : DxfObjectContext
Inheritance
DxfAnnotationScale
Inherited Members

Remarks

A scale is read from ObjectContextManager, in the collection ACDB_ANNOTATIONSCALES, a new object at each reading that stands for its SCALE: a property set writes the record at once, every other byte of the file kept. A scale made in code, new DxfAnnotationScale { Name = "1:20", PaperUnits = 1, DrawingUnits = 20 }, is in no file until AddContext(DxfObjectContext) adds it.

Constructors

DxfAnnotationScale()

Initializes a scale made in code, as AutoCAD's new AnnotationScale(): of no name, 1 unit of the paper to 1 of the drawing; give it its name and units before it is added to a drawing's list.

Properties

CollectionName

Gets the name of the collection of scales, as AutoCAD's CollectionName: ACDB_ANNOTATIONSCALES.

DrawingUnits

Gets or sets how many units of the drawing the scale gives (group 141), as AutoCAD's DrawingUnits: 50 for 1:50; 1 where the record gives none.

Name

Gets or sets the name of the scale (group 300), as AutoCAD's Name, such as 1:50; the spaces around it taken off.

PaperUnits

Gets or sets how many units of the paper the scale gives (group 140), as AutoCAD's PaperUnits: 1 for 1:50; 1 where the record gives none.

Scale

Gets the scale as a number, as AutoCAD's Scale: PaperUnits over DrawingUnits, 0.02 for 1:50.

Methods

ToString()

Gives the scale as a line for debugging: its name and its units.