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

查看:242
本文介绍了为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模型衍生服务,您的作业配置应包含两个额外的参数 compressedUrn rootFilename

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天全站免登陆