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.

    SnappingExtension

    Utility extension that provides access to the Snapper tool.

    The extension id is: Autodesk.Snapping

    Examples

    viewer.loadExtension('Autodesk.Snapping')
    

    Methods

    Load the extension.

    Returns

    typedescription
    Promise that resolves when dependent extension finishes loading.

    unload()

    Unloads the extension. It does not unload dependent extensions.

    Returns

    typedescription
    boolean Always returns true

    activate()

    Unused method.

    Returns

    typedescription
    boolean Always returns true

    deactivate()

    Unused method.

    Returns

    typedescription
    boolean Always returns false