- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
Is there a recommended best practice for opening a detached copy of a cloud workshared central file with the Revit API?
I am developing a model checking utility and I want to open the latest synchronized version of a cloud workshared central file with the detach-and-preserve-worksets option.
However, when I use the method Application.OpenDocumentFile(ModelPath, OpenOptions, IOpenFromCloudCallback) with the option DetachFromCentralOption.DetachAndPreserveWorksets, I get an exception that says "Detach option is not valid for cloud model."
If the detach option is not valid for cloud models, how should I be opening and detaching a cloud model?
I could open the cloud model and then SaveAs a new central file to disk locally. However this will not be acceptable because during the model opening process, it is possible to encounter warnings or errors that require changes to the model (for example, deleting a dimension or one of its references.) This would cause elements in the project to be checked out, which I do not want.
Any help would be appreciated.
Best,
Jason
Solved! Go to Solution.