获取在查看器中加载的扩展

Getting extensions that were loaded in the viewer

有没有办法获取加载的扩展?

例如,我可以通过以下方式获得测量扩展:

let m = viewer.Measurement

然后调用启用和禁用等测量方法?

我找到了,它是:

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

要查看您可以使用的所有扩展程序 viewer.loadedExtensions