Share

Acad.Editor.CurrentViewport.getViewProperties Function

File

Autodesk.AutoCAD.js

Syntax

JavaScript

function Acad.Editor.CurrentViewport.getViewProperties();

Group

ACAD Namespace

Returns

Acad.ViewProperties object 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 return the position, target , upVector, fieldWidth and fieldHeight of the current viewport.

ACAD Namespace

Was this information helpful?