shinzou
shinzou

Reputation: 6192

Getting extensions that were loaded in the viewer

Is there a way to get the loaded extensions?

For example, can I get the measurement extension by doing something like:

let m = viewer.Measurement

And then invoking the measurement methods like enabling and disabling it?

Upvotes: 1

Views: 273

Answers (1)

shinzou
shinzou

Reputation: 6192

I found it, it's with:

let MeasureExtension = viewer.getExtension("Autodesk.Measure");

And to view all the extension you can use viewer.loadedExtensions.

Upvotes: 1

Related Questions