Acad.Editor.CurrentViewport.roll Function
File
Autodesk.AutoCAD.js
Syntax
JavaScript
function Acad.Editor.CurrentViewport.roll(rollAngle, animate);
Group
Parameters
| Parameter | Description |
|---|---|
| rollAngle | type double |
| animate | boolean |
Returns
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 rotate the camera’s up vector about the eye vector by a specified amount, in radians. Positive angles correspond to a clockwise rotation when viewed from the camera position to the camera target.
Remarks
Not supported in Paper Space.
Exception
Throws a TypeError or Error object based on the problem encountered.