Share

Acad.Editor.CurrentViewport.getViewport Function

File

Autodesk.AutoCAD.js

Syntax

JavaScript

function Acad.Editor.CurrentViewport.getViewport();

Group

ACAD Namespace

Returns

Acad.Rectangle2d object which has lowerLeft and upperRight as Acad.Point2d objects in the success callback function.

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

Description

Use this function to retrieve the extents of the viewport in normalized device coordinates.

ACAD Namespace

Was this information helpful?