chris1out
chris1out

Reputation: 176

Open Revit BIM360 Model via command line

Has anyone successfully opened a cloud model via the command line? I can open a non-cloud model by passing the file path, but I'm not sure how you would open something non-local.

Upvotes: 1

Views: 996

Answers (2)

Dmitry Vornychev
Dmitry Vornychev

Reputation: 615

I found that if I pass path to BIM 360 project's local cache, Revit treats it like I open BIM 360 project itself:

# powershell

& "C:\Program Files\Autodesk\Revit 2020\Revit.exe" ^
    "C:\Users\User\AppData\Local\Autodesk\Revit\Autodesk Revit 2020\CollaborationCache\<id>\<some guid>\<another guid>.rvt

But apparently it seems to be working only if BIM 360 project had been opened at least once and therefore cache is present in given folder.

Upvotes: 0

Jeremy Tammik
Jeremy Tammik

Reputation: 8339

The Revit 2020 API introduced the possibility to open a cloud model hosted in BIM360, cf. Open/Save/Modify cloud models on BIM 360 in What's New in the Revit 2020 API.

Another aspect of this new functionality is discussed by The Building Coder on the IOpenFromCloudCallback and the DefaultOpenFromCloudCallback class.

You could use the new functionality in your own add-in implementing a handler for the ApplicationInitialized event to open a cloud model by passing in information to it either via the command line or by other means, e.g., reading an input file specifying the cloud model path to open.

Upvotes: 1

Related Questions