Link Search Menu Expand Document

Javascript SDK and Samples

The Javascript SDK allows you to interact with the Tandem database via Javascript and in “Embedded Viewer” scenarios, similar to how developers use the Forge Viewer.

This API is usable now (in fact the Tandem client uses it), but it is not officially released yet. There will be some re-factoring to make it usable without instantiating the viewer itself, and some new abstractions and helper functions will be added to make it easy to communicate with the Tandem database.

Developers with experience using the Forge Viewer will be able to quickly get up to speed because the presentation layer is mostly the same. However, the Tandem Viewer expects there to always be mulitple models loaded, so you should avoid any specific functions that assume only a single model. Accessing the data behind the visual geometry is powered by the Tandem Database instead of the traditional SVF format used by the Forge Viewer. That gives you access to things like Room and Space information, even when it spans across multiple source models. Using the Tandem database also means it is easy to add your own user-defined properties to assets in the model.

The Javascript SDK is not officially documented yet, but an interactive learning tool has been provided to help you experiment with the API. That learning tool and its source code can be found here: Embedded Viewer Sample


Table of contents