6 Nov 2019

Switch to orthographic corner view

You can modify the view direction through the View Cube - in v7 its functionality got moved into the ViewCubeUi extension.

You just have to load the extension and use the setViewCube() function:
(Note: since loadExtension is a promise, we have to wait on it before we can use it)

let vc = await viewer.loadExtension('Autodesk.ViewCubeUi')
vc.setViewCube('front top right');

The same functionality seems to be also available through cubeRotateTo(), which might be using the above functionality under the hood:

viewer.autocam.cube.cubeRotateTo('front top right');


Related Article

Posted By

Adam Nagy

Follow @AdamTheNagy Adam Nagy joined Autodesk back in 2005 and has been providing programming support, consulting, training and evangelism to external developers. He started his career in Budapest, then worked in Prague for 3 years and now lives in South England, UK. At the moment focusing on Inventor and Fusion 360, plus cloud and mobile related technologies. Adam has a degree in Software Engineering and has...