Forge Viewer Markups latest version

705 views Asked by At

I created Forge viewer version 7 in my own website. I'm trying to add markups like the one shown in Autodesk website (see picture below);

markup example

Are there any tutorial for creating markups tool like this? I found some but they are either outdated version or incomplete. Please suggest, thank you.

1

There are 1 answers

2
Bryan Huang On

The easiest approach would be to use the built-in MarkupsGui extension which provides UI to create markups:

NOP_VIEWER.loadExtension("Autodesk.Viewing.MarkupsGui")
//or turn on the extension during initialization
new Autodesk.Viewing.GuiViewer3D(container,{extensions:['Autodesk.Viewing.MarkupsGui']})

Then a button will appear in the toolbar to trigger the extension:

enter image description here

Alternatively you can come up with your own UI and leverage the MarkupsCore extension which is also built-in to programmatically switch between markup tools and even create markups programmatically, see documentation here

You can either call or extend these to create your own custom extension.