Can Viewer API modify the angle of ViewCube after loading the model?

as shown in figure
clipboard.png

clipboard.png

is the angle as shown in the picture?


Yes, as long as you listen to a Autodesk.Viewing.GEOMETRY_LOADED_EVENT event and call the Viewer3D-sharpsetViewCube () function, please refer to the help documentation: https://developer.autodesk.co.

.
const onGeometriesLoaded = function() {
    viewer.removeEventListener(
        Autodesk.Viewing.GEOMETRY_LOADED_EVENT,
        onGeometriesLoaded
    );
    // Postpone this action to next frame
    setTimeout(function() {
        viewer.setViewCube( 'top/back/left' );
    }, 1000);
};

viewer.addEventListener(
    Autodesk.Viewing.GEOMETRY_LOADED_EVENT,
    onGeometriesLoaded
);
Menu