Share

Acad.Editor.CurrentViewport.zoom Function

File

Autodesk.AutoCAD.js

Syntax

JavaScript

function Acad.Editor.CurrentViewport.zoom(zoomFactor, animate);

Group

ACAD Namespace

Parameters

Parameter Description
zoomFactor is of type double
animate is boolean

Returns

This function returns a promise pattern result, it has to be called as a Promise Pattern with .then(onSuccess, onError) function.

Description

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.

Exception

Throws a TypeError or Error object based on the problem encountered.

ACAD Namespace

Was this information helpful?