Table of Contents

Class CadRemoteViewport

Namespace
OpenCAD2D.Remote
Assembly
OpenCAD2D.Remote.dll

A viewport of a paper layout of a running OpenCAD2D, as Viewports lists it: where it stands on the sheet, the part of model space it shows, its scale and the layers frozen in it alone.

public sealed class CadRemoteViewport
Inheritance
CadRemoteViewport
Inherited Members

Properties

CenterX

Gets the x coordinate of the viewport's centre on the sheet, in paper units.

CenterY

Gets the y coordinate of the viewport's centre on the sheet, in paper units.

CustomScale

Gets the paper length of one model unit, such as 0.1 for 1:10.

FrozenLayers

Gets the names of the layers frozen in this viewport only, sorted by name ignoring case.

Handle

Gets the handle of the viewport in the drawing.

Height

Gets the height of the viewport on the sheet, in paper units.

IsLocked

Gets whether the viewport's display is locked against zooming and panning.

IsOn

Gets whether the viewport shows model space.

Number

Gets the viewport's number; the viewport of the sheet itself (number 1) is left out of the list.

Scale

Gets the scale written as 1:10 or 2:1, or null where the viewport has no named ratio.

ViewCenterX

Gets the x coordinate of the centre of the model-space view.

ViewCenterY

Gets the y coordinate of the centre of the model-space view.

ViewHeight

Gets the height of the model-space view.

Width

Gets the width of the viewport on the sheet, in paper units.