1

If a revit file is already published on BIM 360 docs, is there an easy way to query the name/element_id of it's views through Forge?

I have a Forge plugin that's connected to my BIM 360 account and I can query the hubs and the projects. I can also download the Revit projects. However, it seems like I have to do some translation to SVF according this tutorial: https://forge.autodesk.com/en/docs/model-derivative/v2/tutorials/xtract-metadata/about-this-tutorial/ Given that the Revit files are already published on BIM 360, is there a direct API I can use to query the view name/ids?

1 Answers1

1

Before building application on BIM, you need to have access to BIM APIs, after that, it takes multiple api calls, getting the hubid, projectid, folderid, file and the version id and subsequently view it on forge viewer.

Here's the official tutorial for the entire process.

varunpatil
  • 428
  • 1
  • 3
  • 6
  • Hi Varun, thanks for the answer. I added some detail to the question. – Ehsan Barekati Jun 18 '20 at 15:16
  • When a file is uploaded in BIM, translation to svf happens automatically. manual translation is required if you upload file to forge bucket, which is not your case. So you can view the file in forge viewer directly without any translation. – varunpatil Jun 18 '20 at 15:29
  • How can I acquire the URN to the manifest without starting a translation job? Should I just go ahead and start a translation job and it will return immediately because it's cached? I am looking at this tutorial: https://forge.autodesk.com/en/docs/model-derivative/v2/tutorials/xtract-metadata/task3-translate-source-file/ – Ehsan Barekati Jun 18 '20 at 16:00
  • [In this API](https://forge.autodesk.com/en/docs/data/v2/reference/http/projects-project_id-items-item_id-versions-GET/) versionid is the urn. Please do the tutorial mentioned in the answer, it won't take much time, it's all ready made code with explanation. – varunpatil Jun 19 '20 at 04:47
  • If you have anymore doubt, please ask. if the information provided was useful, please accept the answer. – varunpatil Jun 22 '20 at 12:20