如何实施 'Autodesk.AEC.LevelsExtension' 和 'Autodesk.AEC.Minimap3DExtension'

How to implement 'Autodesk.AEC.LevelsExtension' and 'Autodesk.AEC.Minimap3DExtension'

我已经尝试实现 'Autodesk.AEC.LevelsExtension'。和 'Autodesk.AEC.Minimap3DExtension' 但它对我不起作用。我已经实施了您在 post https://forge.autodesk.com/blog/new-rvt-svf-model-derivative-parameter-generates-additional-content-including-rooms-and-spaces

中推荐的内容

我使用以下方法转换模型,但我仍然没有有关级别的信息。

  var format_type = "svf";
  var format_views = ["2d", "3d"];
  Axios({
    method: "POST",
    url: "https://developer.api.autodesk.com/modelderivative/v2/designdata/job",
    headers: {
      "content-type": "application/json",
      Authorization: "Bearer " + access_token,
      'x-ads-force': true
   },
   data: JSON.stringify({
   input: {
    urn: urn
   },
   output: {
    formats: [
      {
        type: format_type,
        views: format_views,
        "advanced": {
          "generateMasterViews": true
          }
        }
      ] 
    }
  })
})

注意:我使用 Autodesk rac_basic_sample_project.rvt 和 rac_advanced_sample_project.rvt 模型

我们能够通过使用 downloadAecModelData() 方法找到解决方案

function onDocumentLoadSuccess(viewerDocument) {
  var defaultModel = viewerDocument.getRoot().getDefaultGeometry();
  viewer.loadDocumentNode(viewerDocument, defaultModel);
  viewerDocument.downloadAecModelData() 
}