GetLayoutScale()

Summary

Gets the scale of a layout window.

Syntax

ratio = GetLayoutScale(string layout_name)

Argument Contents
layout_name The name of the layout, or null for the current layout

Returns

A real number indicating the layout scale as a ratio of screen units to units on the output page.

Example

// To zoom in, double the scale
curr_scale = GetLayoutScale("My Layout")
// This layout window is shown at twice the actual size SetLayoutScale("My Layout", 2.00 * curr_scale)

Error Codes

Error Type Meaning
NotFound There is no layout of the given name, or layout_name is null and there is no layout window

See Also

Function Summary
SetLayoutScale() Sets the scale of a layout window