A method the client executes when initialization is finished.
Generic error callback.
Success callback when fetching properties.
Success callback when fetching the instanceTree.
Success callback when searching a model's property database.
Fired when fitToView
operation is applied, supports multi-model contexts.
Fired when the list of isolated objects changes in a multi-model context.
Fired when the list of selected objects changes in a multi-model context.
Fired when animations are successfully initialized.
Fired when a camera changes.
Fired whenever a camera transition is finished, such as Focus, Go to Home View, Restore State, restore Named Views, and others.
Fired when a leaflet screenshot needs to be canceled before downloading all required / pending tiles.
Fired when the cutting planes change.
Fired when the ESC key is pressed.
Fired whenever the Explode tool is used.
Fired when a viewer extension is successfully loaded.
Fired when a viewer extension is successfully unloaded.
Fired when the render frame shown by the Viewer is final or complete (it has no more pending geometry or post processing effects which delay incoming frames), or when the Viewer stops showing final frames. The name refers to when the state changes from busy to idle for the renderer, or vice versa. To know when all geometry is fully displayed, also check for GEOMETRY_LOADED_EVENT.
Fired when a fitToView
operation is applied.
Fired when fragments are loaded on demand
Fired when the screen mode changes.
Fired when fragments are loaded on demand
Fired when the model/drawing finishes loading.
Fired when the viewer hides a set of objects.
Fired when user clicks on a hyperlink embedded in the model.
Fired when the viewer isolates a set of objects (i.e., makes everything else invisible or ghosted).
Fired when visibility of a 2D layer changes.
Fired when something in the view changes that may expose missing geometry.
Fired when a model is added to model queue so as to be visible.
Fired when the layers of the model are successfully loaded.
Fired when a model is removed from model queue, i.e. changed to invisible.
Fired when the viewer receives and parses the initial model manifest.
Fired when a model is removed from the viewer.
Fired then the navigation tool changes.
Fired when the instance tree is successfully created.
Fired when there's an error while parsing the instance tree.
Fired when a user preference property changes.
Fired when a user preference property is reset.
Fired repeatedly throughout the process of opening a model/drawing.
Fired when rendering options change.
Fired when the render has presented to the screen.
Fired when a model is reset to its initial configuration.
Fired as a result of invoking viewer.restoreDefaultSettings()
to restore default settings.
Will get fired after all other Autodesk.Viewing.PREF_CHANGED_EVENT get fired.
Fired when the list of selected objects changes.
Fired when the viewer shows a set of objects.
Fired when the model/drawing textures finish loading.
Fired when a tool is activated or deactivated.
Fired when the viewer is fully initialized.
Fired when the viewer size changes.
Fired when the viewer state is restored.
Fired when the viewer is fully uninitialized.
Fired when the drawing buffer associated with a WebGLRenderingContext object has been lost
Helper class for initializing the viewer runtime.
Includes:
The options object contains configuration parameters used to do initializations. If no access token or authentication callback is provided, the Initializer will fall back on an access token provided in the URL query string, or a previous access token stored in the cookie cache, if available.
A method the client executes when initialization is finished.
Autodesk 2018 © All Rights Reserved
Code to retrieve and assign token value to accessToken and expire time in seconds.