Table of Contents

Method ScaleOf

Namespace
OpenCAD2D.SheetSets
Assembly
OpenCAD2D.Core.dll

ScaleOf(DxfDatabase, string)

Reads the scale a view was placed at on a sheet: the scale of the viewport that the named view saved in the layout surrounds.

public static string ScaleOf(DxfDatabase database, string namedViewName)

Parameters

database DxfDatabase

The sheet's drawing.

namedViewName string

The name of the named view the sheet view points at.

Returns

string

The scale as 1:100; empty where the drawing has no such view or no viewport inside it.

Exceptions

ArgumentNullException

Thrown when the drawing or the name is null.