简体   繁体   English

翻译存储在 BIM360 中的 model

[英]Translating a model stored in BIM360

I'd like to translate a revit file that is stored in BIM360 to IFC format.我想将以 BIM360 存储的 revit 文件转换为 IFC 格式。
So I found the revit file in BIM360 using the HubsApi , ProjectsApi and FolderApi classes from the .NET client API nuget package: So I found the revit file in BIM360 using the HubsApi , ProjectsApi and FolderApi classes from the .NET client API nuget package:
https://github.com/Autodesk-Forge/forge-api-dotnet-client https://github.com/Autodesk-Forge/forge-api-dotnet-client

I found the URN of the file using the GetFolderContentsAsync method of FoldersApi , but when I try to use it with the TranslateAsync method of DerivativesApi class, I get this error:我使用FoldersApiGetFolderContentsAsync方法找到了文件的 URN,但是当我尝试将它与DerivativesApi class 的TranslateAsync方法一起使用时,我收到此错误:

Error calling Translate: {"diagnostic":"Internal server error when get design description with code 400"}调用翻译时出错:{“诊断”:“获取代码 400 的设计描述时出现内部服务器错误”}

What am I doing wrong?我究竟做错了什么?

On BIM360, you access model via their Version, not the Item.在 BIM360 上,您通过其版本而不是项目访问 model。 You seems to tell to wanted translate the Item which may list several versions.您似乎告诉要翻译可能列出多个版本的项目。

GetFolderContent returns items, Use the item URN for the next call. GetFolderContent返回项目,使用项目 URN 进行下一次调用。 Something like: urn:adsk.wipprod:dm.lineage:hC6k4hndRWaeIVhIjvHu8w类似于:urn:adsk.wipprod:dm.lineage:hC6k4hndRWaeIVhIjvHu8w

GetItemVersions will return version's URN. GetItemVersions将返回版本的 URN。 Something like: urn:adsk.wipprod:fs.file:vf.b909RzMKR4mhc3O7UBY_8g?version=2类似于:urn:adsk.wipprod:fs.file:vf.b909RzMKR4mhc3O7UBY_8g?version=2

This is the one you need.这是你需要的。

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

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