Table of Contents

Class CadScaleListRow

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

A scale of AutoCAD's Edit Drawing Scales: its name, its paper and drawing units, and whether the drawing keeps it (the unit scale, the current annotation scale, one an object points at) or an object points at it, which greys Delete and, for the latter, the units of Edit Scale.

public sealed class CadScaleListRow
Inheritance
CadScaleListRow
Inherited Members

Constructors

CadScaleListRow(string, double, double)

Makes a scale of the list, as Add Scale makes one: 1:25 of one paper unit to 25 drawing units.

Properties

DrawingUnits

Gets the drawing units, as 50.

IsInUse

Gets whether an object of the drawing points at the scale, a viewport or an annotative object: AutoCAD's Edit Scale does not change its units then ("You cannot change the scale properties of a scale that is referenced by an object in the drawing").

IsKept

Gets whether the drawing keeps the scale, as AutoCAD keeps one: the unit scale, the current annotation scale (CANNOSCALE) and one an object points at. Delete is greyed for it, and Reset keeps it.

Name

Gets the name, as 1:50.

Original

Gets the name the scale has in the drawing; null for one added in the dialog.

PaperUnits

Gets the paper units, as 1.

Scale

Gets the scale they give: the paper units over the drawing units, 0.02 for 1:50.

Methods

Number(double)

A number as the dialog writes units: up to eight decimals, no zeros after them, 0.0078125 for 1/128.

Sentence()

The line Selected scale shows: "1 paper unit = 50 drawing units".

ToString()
With(string, double, double)

The scale with another name and units, the drawing's scale it stands for kept.