3D Tools
Control Canvas 3D modes such as selection, walkthrough, hide parts, explode, transparency, cross section, and model reset using the SDK.
Use viewer.tools.threeD to control Canvas 3D modes such as selection, walkthrough, hide parts, explode, transparency, cross section, and model reset.
3D tools are available after the viewer is mounted, Canvas is ready, and a 3D document is open.
- Most 3D commands require an active 3D document. Canvas will return
success: falseor error if the active document is not 3D.
Supported 3D tools methods on the SDK:
setBirdEyeView(options?): TriggerssetBirdEyeViewon Canvas.resetModel(options?): Restores the model to its default 3D state (reset3DModel).setSelect(options?): Enables 3D object part selection (set3DSelect).setMarkupSelect(options?): Enables markup selection mode (set3DMarkupSelect).setWalkthrough(options?): Activates walkthrough navigation mode (set3DWalkthrough).setHidePartsMode(options?): Enables click-to-hide part interaction (set3DHidePartsMode).setExplode(options?): Activates explode spacing mode (set3DExplode).setTransparency(options?): Configures model transparency depth (set3DTransparency).setCrossSection(options?): Renders custom model slice planes (set3DCrossSection).
Each method accepts a shared config payload:
- If
enabledis omitted on toggle commands, Canvas can toggle the active state automatically.
Enable selection mode and subscribe to part selection events:
Configure spatial separation and translucency depth values:
Clip the active model along slice planes by setting X, Y, or Z vector coordinates:
Complete integration code setup for Vanilla HTML/JS environments:
Broker message mapping for 3D tools:
viewer.tools.threeD.setBirdEyeView(...)maps tosetBirdEyeView/setBirdEyeViewResult.viewer.tools.threeD.resetModel(...)maps toreset3DModel/reset3DModelResult.viewer.tools.threeD.setSelect(...)maps toset3DSelect/set3DSelectResult.viewer.tools.threeD.setMarkupSelect(...)maps toset3DMarkupSelect/set3DMarkupSelectResult.viewer.tools.threeD.setWalkthrough(...)maps toset3DWalkthrough/set3DWalkthroughResult.viewer.tools.threeD.setHidePartsMode(...)maps toset3DHidePartsMode/set3DHidePartsModeResult.viewer.tools.threeD.setExplode(...)maps toset3DExplode/set3DExplodeResult.viewer.tools.threeD.setTransparency(...)maps toset3DTransparency/set3DTransparencyResult.viewer.tools.threeD.setCrossSection(...)maps toset3DCrossSection/set3DCrossSectionResult.viewer.tools.threeD.on("partSelected", ...)listens tothreeDPartSelected.viewer.tools.threeD.on("selectionCleared", ...)listens tothreeDPartSelectionCleared.
