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
| type | description |
|---|---|
| Promise | that resolves when dependent extension finishes loading. |
unload()
Unloads the extension. It does not unload dependent extensions.
Returns
| type | description |
|---|---|
| boolean | Always returns true |
activate()
Unused method.
Returns
| type | description |
|---|---|
| boolean | Always returns true |
deactivate()
Unused method.
Returns
| type | description |
|---|---|
| boolean | Always returns false |