Skip to main content
Committed ⭐️
Feb 14, 2023 5:48 AM UTC
Solved

Download 3d files from CDF - fundamentals through API ?

We planned to Download 3d files from CDF - fundamentals through API , However I can able to find correct API for this. Can anyone explain which api will for work this scenario and what is the concept of asset when  models addition. 

Trygve Utstumo
Practitioner ⭐️⭐️⭐️
Feb 14, 2023 8:16 AM UTC

You have to jump through a couple of steps to get the fileID and then download.

Use the Fusion GUI to find the modelID and revisionID.

Then use https://api.cognitedata.com/api/v1/projects/{project}/3d/models/{modelId}/revisions/{revisionId} to get the fileID.

You can then get the actual file through an API call

to:https://api.cognitedata.com/api/v1/projects/{project}/3d/files/{threedFileId}

 

3 replies

Trygve Utstumo
Practitioner ⭐️⭐️⭐️
Practitioner ⭐️⭐️⭐️
Feb 14, 2023 8:16 AM UTC

You have to jump through a couple of steps to get the fileID and then download.

Use the Fusion GUI to find the modelID and revisionID.

Then use https://api.cognitedata.com/api/v1/projects/{project}/3d/models/{modelId}/revisions/{revisionId} to get the fileID.

You can then get the actual file through an API call

to:https://api.cognitedata.com/api/v1/projects/{project}/3d/files/{threedFileId}

 

Committed ⭐️
Feb 17, 2023 8:29 AM UTC

Hi @Trygve Utstumo ,

Thanks for your response. I can be able to download thumbnail images and 3d files.

However, I can’t be able to download the 3D Content from below API

 

API : https://api.cognitedata.com/api/v1/projects/publicdata/files

https://api.cognitedata.com/api/v1/projects/{project}/3d/files/{threedFileId}

 

I tried this Valhall PH file from public data project, after debug, I found File not found error message in this GUI site

“https://publicdata.fusion.cognite.com/publicdata/3d-models”

 

I can be able to download and upload the 3d content from CDF – fundamentals project but I faced this issue only when using public data and infield training. Can you please guide us to how access?

Dilini Fernando
Expert ⭐️⭐️⭐️⭐️
Expert ⭐️⭐️⭐️⭐️
Feb 17, 2023 10:46 AM UTC

Hi @Karthick Ramadoss ,

Cognite has restricted the 3D model downloading for the publicdata tenant and you are unable to download the data because you are missing the required capability.