Hello everyone,
I am trying to download revit file from BIM360 Team (%teamname%.autodesk360.com).
I'm using this reference https://developer.autodesk.com/en/docs/data/v2/tutorials/download-file/ and it works for dwg files but not for rvt.
I can't open revit models downloaded using "storage" endpoint, but with rvt it is okay.
What could be wrong?
I have also tried to use "POST downloads" endpoint - https://developer.autodesk.com/en/docs/data/v2/reference/http/projects-project_id-downloads-POST/
but docs there not so clear. Where should I put "version_id" there?
Thank you!
Solved! Go to Solution.
Solved by mikako_harada. Go to Solution.
Solved by aleksei.melnikov. Go to Solution.
Sorry for panic.
Accidentally I found a reason why I can't open it. It is a zip archive, not dwg!
But the question with "POST download" docs is still relevant. Any body know where to put version_id here?
Hi Alexsey,
The example of body shows like this:
{ "jsonapi": { "version": "1.0" }, "data": { "type": "downloads", "attributes": { "format": { "fileType": "dwf" } }, "relationships": { "source": { "data": { "type": "versions", "id": "urn:adsk.wipprod:fs.file:vf.ooWjwAQJR0uEoPRyfEnvew?version=1" } } } } }
Could you try it based on this request body JSON structure?
One more question about Revit files downloading.
As I understand, if there are no linked files endpoint return only one RVT (unzipped). If there are some linked models, it returns several models zipped.
How could I know am I downloading zipped Revit models or one, not the archived model?
There are no differences in headers
{'Access-Control-Allow-Origin': '*', 'Content-Encoding': 'gzip', 'ETag': '"%%%"', 'Vary': 'Accept-Encoding', 'Access-Control-Allow-Headers': 'Authorization, Accept-Encoding, Range, Content-Type', 'Date': 'Thu, 22 Feb 2018 08:19:16 GMT', 'Content-Disposition': 'attachment; filename="%%%.rvt"', 'transfer-encoding': 'chunked', 'Access-Control-Allow-Methods': 'GET', 'Content-Type': 'application/octet-stream', 'Access-Control-Allow-Credentials': 'true', 'Connection': 'keep-alive'}
Is there any other way to know the format before opening the file in Revit?
Can't find what you're looking for? Ask the community or share your knowledge.