为 Forge Viewer 上传链接的 Revit 模型 [英] Upload linked Revit models for Forge Viewer

查看:40
本文介绍了为 Forge Viewer 上传链接的 Revit 模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将包含多个 Revit 文件的 Revit 模型上传到 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?

我已单独上传,它们在存储桶和查看器中显示为不同的文件.我们可以在 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?

推荐答案

一个 ZIP 文件可以帮助你做这样的事情.您可以将它们打包在一个 .zip 文件中,然后将其上传到 Forge 数据管理服务.

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.

向 Forge Model Derivative Service 提交翻译作业时,您的作业配置应包含两个额外参数 compressedUrnrootFilename,例如:

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"
         ]
       }
     ]
   }
  }

之后,这些 RVT 文件将被翻译成一个单一的衍生文件,您可以通过一个 URN 在查看器中看到所有链接的文件内容.

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.

这篇关于为 Forge Viewer 上传链接的 Revit 模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆