Revit模型中的链接在Model Derivative API(Viewer)中未显示。

huangapple go评论81阅读模式
英文:

Links in Revit models not showing in Model Derivative API (Viewer)

问题

我正在使用 Autodesk 平台服务上提供的 Postman 教程的组合。我正在使用数据管理来访问通过版本端点在 BIM360 中获取 Revit 模型的已签名的 S3 下载 URL,然后使用此 URL 将文件上传到存储桶并启动 Model Derivative 中的转换作业以在 Viewer 中显示。

当作业完成时,我无法看到与 Revit 文件相关的链接结构,只能获取直接保存在其中的模型信息。

所使用的 URL 取自版本:
file['relationships']['storage']['meta']['links']['href'] + "/signeds3download"

查看 Inventor 的教程时,那些文件会带有一个装配说明文件 (.iam),Revit 模型是否有类似的过程/文件?

英文:

I'm using a combination of the Postman tutorials available on Autodesk Platform services. I'm using data management to access the signed s3 download url of a revit model in BIM360 through the versions endpoint, then using this to upload a file to a bucket and start a translation job in Model Derivative to show in the Viewer.

When the job is complete, I cannot see the linked structures involved in the revit file and am only getting the information of the model directly saved in it.

The url used is taken from the version:
file['relationships']['storage']['meta']['links']['href'] + "/signeds3download"

Looking at the tutorials for Inventor, those files come with an assembly instruction file (.iam) is there a similar process / file for revit models?

答案1

得分: 0

如果您有一个由多个相互引用的文件组成的设计需要翻译以进行查看,有两个选项:

  1. 将所有文件打包成 *.zip 文件,使用数据管理服务上传存档,并使用 compressedUrn: truerootFilename 启动模型衍生服务翻译,其中 rootFilename 指向主文件(有关详细信息,请参阅此教程

  2. 逐个上传所有文件,并使用 POST references 端点指定它们之间的关系(有关详细信息,请参阅此教程

像BIM360或ACC这样的产品已经为您处理了这个问题,这就是为什么模型在那里正确显示的原因。

顺便说一下,如果您的设计已经在BIM360中,就无需再次进行翻译,您可以直接将它们加载到您的查看器应用程序中。有关更多信息,请查看Hubs Browser教程。

英文:

If you have a design that's made of multiple files referencing each other that you want to translate for viewing, you have two options:

  1. Pack all files into a *.zip file, upload the archive using the Data Management service, and start a Model Derivative service translation with compressedUrn: true and rootFilename pointing to the master file (see this tutorial for more details)

  2. Upload all files individually, and specify the relationships among them using the POST references endpoint (see this tutorial for more details)

Products such as BIM360 or ACC are already handling this for you, that's why the model displays correctly there.

Btw. if your designs are already in BIM360, there's no need to translate them again, and you can load them directly into your viewer app. For more information, please check out the Hubs Browser tutorial.

huangapple
  • 本文由 发表于 2023年5月22日 18:14:15
  • 转载请务必保留本文链接:https://go.coder-hub.com/76305139.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定