Skip to main content
Version: v5.0

Model Viewers Overview

platform model viewers are web based React components that can be easily plugged in to React applications by passing in model information as properties. The model viewers provide a wide range of features.

The two model viewers described in this section are:

Commands are also described which allow access to the data stored in a viewer.

IafViewerDBM#

IafViewerDBM is a wrapper component used in Digital Twin to simplify the process of retrieving model files and data. By just passing in a platform model JSON object, it takes care of loading graphic files, ID mapping and even 2D views (if they exist) within the platform. It's the most commonly used of the model viewers so users usually don't need to use the IafViewer directly.

For more information, refer to the IafViewerDBM page.

IafViewer#

The IafViewer is a React component which enables a user to interact with a digital twin model in 3D space using various tools. The IafViewer is the core of the viewer components but is usually not used directly.

For more information, refer to the IafViewer page.

Commands#

Commands are utility functions allowing users to access or set data structures stored in the viewer.

    const viewerRef = useRef()    let commands = _.get(viewerRef, "current.iafviewerRef.current.commands")    if (commands && commands.getSelectedEntities) {        let pkgIds = await commands.getSelectedEntities()    }

For more information, refer to the Commands page.