Model Viewers Overview
platform model viewers are React components you embed by passing model data and mode configuration as props. Most applications use IafViewerDBM; it loads platform model files and forwards the same mode object props documented on IafViewer.
This section covers:
- IafViewerDBM — usual entry point (model load + DBM data props + animations)
- IafViewer — core component and exhaustive mode object prop tables (
view3d,view2d,gis,arcgis,ue,photosphere,modelComposition, …) - Commands — imperative View3D helpers on the viewer instance (
getSelectedEntities, camera, cutting planes, …)
Product guides (modes, Core components, integration recipes): IafViewer Overview and IafViewer Enhanced Viewing Modes.
IafViewerDBM
IafViewerDBM wraps IafViewer for Digital Twin-style apps. Pass a model NamedCompositeItem; it loads graphic files, ID mapping, and 2D sheets when present. It also accepts the same Enhanced Viewing Mode objects as IafViewer.
For more information, see IafViewerDBM.
IafViewer
IafViewer is the core React component: View3D / View2D (Graphics Service), Mapbox GIS, ArcGIS, Unreal Engine, and Photosphere. Apps usually mount it through IafViewerDBM rather than using it directly.
For install, import, and full prop tables, see IafViewer.
Commands
commands on the inner IafViewer instance exposes imperative helpers for View3D selection, settings, isolation / hide sets, camera, cutting planes, and draw mode. Access via a ref through IafViewerDBM:
const viewerRef = useRef();
// … <IafViewerDBM ref={viewerRef} … />
const commands = _.get(viewerRef, "current.iafviewerRef.current.commands");
if (commands?.getSelectedEntities) {
const pkgIds = await commands.getSelectedEntities();
}
These are not the ArcGIS / Unreal command prop queues or sendCommand from mode ready callbacks. For those, see the mode pages under Enhanced Viewing Modes.
Full reference: Commands.