简体   繁体   English

直接从 BIM360 hub/project/model 获取 svf

[英]directly get svf from BIM360 hub/project/model

instead of using Model Derivative, is it possible to get file in SVF format directly from BIM360 model which has already been converted to SVF or SVF2 format?而不是使用 Model Derivative,是否可以直接从已经转换为 SVF 或 SVF2 格式的 BIM360 model 获取 SVF 格式的文件? I mean not using MD service at all, thanks.我的意思是根本不使用 MD 服务,谢谢。

To download SVF dataset (no matter from your own bucket, or from BIM360), you need to use Forge Derivative API to get manifest (GET:manifest) info and metadata (GET:Metadata) info.下载SVF数据集(无论是从你自己的bucket,还是从BIM360),你需要使用Forge Derivative API来获取清单(GET:manifest)信息和元数据(GET:Metadata)信息。 The info will tell the relative cloud path of the *.svf, while *.svf stores the index of the dataset.该信息将告诉 *.svf 的相对云路径,而 *.svf 存储数据集的索引。 Then download them one by one.然后一个一个下载。

We have a few code that demo how to download SVF data to local.我们有一些代码演示了如何将 SVF 数据下载到本地。 The most updated one I would recommend is my colleague Petr composed: https://github.com/petrbroz/forge-convert-utils It targets to convert SVF to glTF, but it has quite a few granule modules, one of which can download SVF data.我推荐的最新更新的是我的同事Petr composed: https://github.com/petrbroz/forge-convert-utils它的目标是将SVF转换为glTF,但是它有相当多的颗粒模块,其中一个可以下载SVF 数据。

you could perform a simple test:你可以进行一个简单的测试:

  1. download the source code of the tool下载该工具的源代码
  2. run npm install运行npm install
  3. run npm run-script build运行npm run-script build
  4. export your Forge client id and secret to env将您的 Forge 客户端 ID 和密码导出到 env
  5. run node samples/download-svf.js <your model urn of BIM360> <local path>运行node samples/download-svf.js <your model urn of BIM360> <local path>

It will start the process to get manifest and download the SVF data one by one to local.它将启动获取清单的过程并将SVF数据逐一下载到本地。 This is a screenshot with my test.这是我测试的截图。 If you work with js, typescript, you could merge the module to your workflow.如果您使用 js,typescript,您可以将该模块合并到您的工作流中。

在此处输入图像描述

In the context of BIM360, the uploaded models will be translated to SVF(s) automatically.在 BIM360 上下文中,上传的模型将自动转换为 SVF。 So you can get the metadata, properties or load in Forge Viewer directly.因此,您可以直接在 Forge Viewer 中获取元数据、属性或加载。 This is a tutorial on how to work with BIM360 hub/project/folders/item/versions, in which no specific step to translate models.这是一个关于如何使用 BIM360 hub/project/folders/item/versions 的教程,其中没有翻译模型的具体步骤。 https://learnforge.autodesk.io/#/tutorials/viewhubmodels https://learnforge.autodesk.io/#/tutorials/viewhubmodels

Pease note: this encourages the programmers, solution builders to provide extensible abilities for the end users of BIM360, adding more values for them.请注意:这鼓励程序员、解决方案构建者为 BIM360 的最终用户提供可扩展的能力,为他们增加更多的价值。 It does not mean to be an alterative to bypass model derivative when the solution is not for BIM360 users.当解决方案不适用于 BIM360 用户时,这并不意味着绕过 model 派生的替代方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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