You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在APS Viewer(v7.98)中激活Autodesk DiffTool扩展?

Troubleshooting "Extension not found: Autodesk.DiffTool" Error

Here are the most common fixes to resolve this issue:

  • Wait for the Viewer to fully initialize before loading the extension
    In React, don’t call viewer.loadExtension('Autodesk.DiffTool') right after creating the viewer instance. The extension registry isn’t fully populated until the viewer finishes setting up. Instead, listen for the viewerInitialized event or wait for the initialization promise to resolve:

    viewer.addEventListener('viewerInitialized', async () => {
      try {
        const diffToolExt = await viewer.loadExtension('Autodesk.DiffTool');
        // Initialize DiffTool logic here
      } catch (err) {
        console.error('Failed to load DiffTool extension:', err);
      }
    });
    
  • Confirm you’re loading the complete Viewer script
    Make sure you’re using the full Viewer 3D script from the Autodesk CDN, not a minimal or custom build that excludes built-in extensions. The standard script includes DiffTool by default:

    <script src="https://developer.api.autodesk.com/modelderivative/v2/viewers/7.98/viewer3D.min.js"></script>
    

    If you’re loading the script dynamically in React, ensure it’s fully loaded before initializing the viewer (e.g., use the onload event for the script tag).

  • Clear your browser cache
    Cached versions of older Viewer scripts might not include the DiffTool extension. Clear your browser’s cache and hard-reload the app to pull the latest v7.98 script.

  • Double-check the extension name
    The extension name is case-sensitive: it must be Autodesk.DiffTool (not DiffTools, difftool, or any variation). Typos here will trigger the "not found" error.

  • Check custom build configurations (if applicable)
    If you’re using a custom-built Viewer bundle (instead of the CDN), verify that the DiffTool extension is included in your build setup. Custom builds often omit non-core extensions unless explicitly enabled.

内容的提问来源于stack exchange,提问作者Niklas

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.12 18:12:11