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

Autodesk.AutoCAD.js

JavaScript
function Acad.Editor.CurrentViewport();
Represents the current viewport and stores view properties like camera position, target, fieldheight, fieldWidth, upVector, projection.

 

Links
Properties
Name 
Type 
Description 
Condition 
projection 
Returns the projection. Ensure that projection is not used when the view is in the interactive state. 
Read-Only 
fieldHeight 
float 
Returns the camera field Height. Ensure that FieldHeight is not used when the view is in the interactive state. 
Read-Only 
fieldWidth 
float 
Returns the camera field width. Ensure that FieldWidth is not used when the view is in the interactive state. 
Read-Only 
upVector 
Returns the camera up vector. Ensure not to use UpVector when the view is in the interactive state. 
Read-Only 
target 
Returns the camera target. Ensure not to use Target when the view is in the interactive state. 
Read-Only 
position 
Returns the camera position. Ensure not to use Position when the view is in the interactive state. 
Read-Only 
Copyright (c) 2016. All rights reserved.
What do you think about this topic? Send feedback!