JavaScript Application Programming Interface (API) for AutoCAD
ContentsIndexHome
PreviousUpNext
Acad.Editor.CurrentViewport.zoomWindow Function

Autodesk.AutoCAD.js

JavaScript
function Acad.Editor.CurrentViewport.zoomWindow(lowerLeft,upperRight,animate);
Parameters 
Description 
lowerLeft 
Input screen coordinate of the lower-left point of the new zoom window of type Acad.Point2d. 
upperRight 
Input screen coordinate of the upper-right point of the new zoom window of type Acad.Point2d. 
animate 
is Boolean. 

Use this function to modify the current view such that the new window displays the region defined by the input screen coordinates. The aspect ratio is automatically maintained.

Links
Copyright (c) 2016. All rights reserved.
What do you think about this topic? Send feedback!