Table of Contents

Method ZoomWindow

Namespace
OpenCAD2D.Remote
Assembly
OpenCAD2D.Remote.dll

ZoomWindow(GeoPoint2, GeoPoint2)

Zooms the drawing to a window, as ZOOM Window does: the window fitted with no margin. With the console view of the app with no window (942 by 534 pixels), (0, 0) to (10, 10) shows (-3.820, 0) to (13.820, 10).

public void ZoomWindow(GeoPoint2 first, GeoPoint2 second)

Parameters

first GeoPoint2

One corner.

second GeoPoint2

The opposite corner.

Exceptions

CadRemoteException

Thrown when the drawing is closed or is not the drawing shown, or the window has no width or no height.