Request

Response

    Autodesk.Viewing.Extensions
    Version 8 preview
    This page documents a preview of the Viewer SDK v8. APIs and content can still change before the final release.

    Methods

    Performs the corresponding button action.

    Parameters

    mode*
    string
    one of the supported modes, see getModes().
    * Required

    deactivate()

    Deactivates the current mode and activates the default viewer’s navigation tool.

    Returns

    typedescription
    boolean true when deactivation is successful.

    isActive(mode)

    Checks whether a specific supported mode is currently active.

    Parameters

    mode*
    string
    one of the supported modes.
    * Required

    Returns

    typedescription
    boolean true is the mode queried is currently active.