简体   繁体   中英

Upload linked Revit models for Forge Viewer

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM