Table of Contents

CadPlotScale

from OpenCAD2D import CadPlotScale

class CadPlotScale(System.Object) ยท CadPlotScale in the .NET reference

A scale of the Scale list of the Plot dialog: its name and the paper millimetres to the drawing units they stand for.

Constructors

__init__

.NET

def __init__(self, name: str, paperUnits: float, drawingUnits: float) -> None

Makes a scale.

Properties and fields

DrawingUnits

.NET

@property
def DrawingUnits(self) -> float

Gets the units of the drawing they stand for: 20 for 1:20.

Name

.NET

@property
def Name(self) -> str

Gets the name shown, as "1:20".

PaperUnits

.NET

@property
def PaperUnits(self) -> float

Gets the millimetres of the paper: 1 for 1:20.

Methods

ListFor

.NET

@staticmethod
def ListFor(database: DxfDatabase) -> System.Collections.Generic.IReadOnlyList[CadPlotScale]

Gets the scales of the list for a drawing: 1:1, 1:2, 1:5, 1:10, 1:20, 1:50, 1:100, 1:200, 1:500 and 1:1000, then the drawing's own (its ACAD_SCALELIST) that are none of those, in the drawing's order; 1:25 of a drawing is listed after 1:1000, its 1:20 not again.

ToString

.NET

def ToString(self) -> str