Reputation: 176
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
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
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