Upload linked Revit models for Forge Viewer

旧街凉风 提交于 2019-12-23 05:32:48

问题


How can I upload a Revit model that contains multiple Revit files, where one of them is a main file and the remaining are linked files into Forge Viewer?

I've uploaded separately and they show as different files in the bucket and the viewer. Can we have one combined file to be viewed in the Forge Viewer?


回答1:


A ZIP file can help you do such thing. You can pack them in a single .zip file, then upload it to Forge Data Management Service.

While submitting a translation job to the Forge Model Derivative Service, your job configs should contain two extra parameters compressedUrn and rootFilename, for example:

  {
   "input": {
     "urn": "dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bW9kZWxkZXJpdmF0aXZlL0E1LnppcA",
     "compressedUrn": true,
     "rootFilename": "myAwesomeHostFile.rvt"
   },
   "output": {
     "formats": [
       {
         "type": "svf",
         "views": [
           "2d",
           "3d"
         ]
       }
     ]
   }
  }

Afterward, those RVT files will be translated into a single derivative, you can see all linked file contents in the viewer via a single URN.



来源:https://stackoverflow.com/questions/49142842/upload-linked-revit-models-for-forge-viewer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!