Community
BIM 360 API Forum
Welcome to Autodesk’s BIM 360 API Forums. Share your knowledge, ask questions, and explore popular BIM 360 API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem with downloading RVT models from A360

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
aleksei.melnikov
936 Views, 3 Replies

Problem with downloading RVT models from A360

aleksei.melnikov
Contributor
Contributor

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!

0 Likes

Problem with downloading RVT models from A360

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!

3 REPLIES 3
Message 2 of 4

aleksei.melnikov
Contributor
Contributor
Accepted solution

Sorry for panic. 

Accidentally I found a reason why I can't open it. It is a zip archive, not dwg! Smiley Very Happy

 

But the question with "POST download" docs is still relevant. Any body know where to put version_id here?

Sorry for panic. 

Accidentally I found a reason why I can't open it. It is a zip archive, not dwg! Smiley Very Happy

 

But the question with "POST download" docs is still relevant. Any body know where to put version_id here?

Message 3 of 4

mikako_harada
Community Manager
Community Manager
Accepted solution

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? 


Mikako Harada
Developer Technical Services

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? 


Mikako Harada
Developer Technical Services
Message 4 of 4

aleksei.melnikov
Contributor
Contributor

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?

0 Likes

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.

Post to forums  

Autodesk Design & Make Report