Method ScaleOf
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
databaseDxfDatabaseThe sheet's drawing.
namedViewNamestringThe 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.