Skip to main content

AutodeskPin API Reference

AutodeskPin is a PinAdapter for the Contextual Comments component and allows you to integrate Contextual Comments into a Autodesk APS Viewer application.

How to use

To initialize the AutodeskPin you can follow our quickstart guide.

Usage

import { AutodeskPin } from "@superviz/autodesk-viewer-plugin";

// element where the Autodesk will be loaded
const viewerElement = document.getElementById("autodesk-viewer-id");

// Autodesk instance
const viewer = new Autodesk.Viewing.GuiViewer3D(viewerDiv, config3d);

// Creating a Autodesk adapter
const pinAdapter = new AutodeskPin(viewer);

Properties

See below the parameters to use in the constructor of the AutodeskPin:

NameTypeDescription
viewerGuiViewer3DRequired. An instance of the Autodesk Viewer.