简体   繁体   中英

Translating a model stored in BIM360

I'd like to translate a revit file that is stored in BIM360 to IFC format.
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

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:

Error calling Translate: {"diagnostic":"Internal server error when get design description with code 400"}

What am I doing wrong?

On BIM360, you access model via their Version, not the Item. 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. Something like: urn:adsk.wipprod:dm.lineage:hC6k4hndRWaeIVhIjvHu8w

GetItemVersions will return version's URN. Something like: urn:adsk.wipprod:fs.file:vf.b909RzMKR4mhc3O7UBY_8g?version=2

This is the one you need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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