19 Jul 2018

Accessing BIM 360 Design models on Revit

Default blog image

The Revit 2019 desktop .NET API offers the ability to open a BIM 360 Design (formerly Collaboration for Revit, or C4R) model from its location on the cloud. See item 1.5 here. To use ModelPathUtils.ConvertCloudGUIDsToCloudPath(Guid, Guid) we need the respective GUIDs, how to get that?

Forge Data Management API allows us to navigate from BIM 360 accounts (i.e. Hubs), then projects, folders, and items. This last is the file, but it can have multiple versions, and that's what we need: a specific version! The response from GET Versions contains an array of versions, on each we should look into the .attributes.extension.data, where we can see the projectGuid and modelGuid, see code snippet below. That's it.

Don't know how to use Forge on your desktop .NET application/plugin? Check this blog post for details.


Related Article