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

Autodesk.AutoCAD.js

JavaScript
function Acad.Editor.CurrentViewport.zoom(zoomFactor,animate);
Parameters 
Description 
zoomFactor 
is of type Double 
animate 
is Boolean 

Changes the viewing field (the focal length) of the camera to give the effect of dynamically moving in or out of a scene. The camera position and target are not changed and the specified factor must be positive.

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