Reputation: 73
I'm trying to write the ES6 version of the Headless Forge Viewer implemented in this link: https://forge.autodesk.com/en/docs/viewer/v2/tutorials/headless/
I've installed the npm package for the Forge Viewer, and I succeed to do most of the code till I reached these two lines:
var modelNodes = viewerApp.bubble.search(av.BubbleNode.MODEL_NODE); // 3D designs
var sheetNodes = viewerApp.bubble.search(av.BubbleNode.SHEET_NODE); // 2D designs
I don't know how to define the "av" in Typescript.
Can anyone help please?
Upvotes: 0
Views: 104
Reputation: 73
I just figured out the answer, just replace the av with Autodesk.Viewing and everything work as a charm :)
Upvotes: 1