I was downloading Revit models from BIM360 team hub via ForgeAPI using the following uri.
https://developer.api.autodesk.com/oss/v2/buckets/:bucketKey/objects/:objectName
All my objectName
ended with .rvt
. So I downloaded and saved them as rvt
file.
However I noticed that some of the files cannot be opened by Revit. They are actually not rvt
files but zip files. So I have to change the extension to .zip
and unzip the file to get real 'rvt` files.
My Problem is that not all files is zip
file. I cannot tell from the API because the URI I request is always ended with .rvt
.