I am trying to load the current version of all IFC files that are stored in a given folder in BIM 360 Docs into the Forge Model Viewer.
To get the derivatives of each IFC file I am calling
projects/:project_id/folders/:folder_id/contents?filter[hidden]=false
In the included property of this response I get
- Items of type items:autodesk.bim360:Document that seems to be the current version, but they have no derivatives.
- Items of type items:autodesk.bim360:File that have a derivatives, but come from files that have been moved or deleted.
If I would filter out this call to return only Documents like
projects/:project_id/folders/:folder_id/contents?filter[extension.type]=items:autodesk.bim360:Document
Then the data property seems to return all current versions of the files in that folder that I am looking for, but again it has no derivatives.
How do I get derivatives from an items:autodesk.bim360:Document type or is there another way to achieve what I'm trying to do here?
I also don't really understand the difference between the type items:autodesk.bim360:Document and items:autodesk.bim360:File, but it looks that I need the items:autodesk.bim360:Document. If anyone could explain the difference between these, that would be helpfull as well.