Open closed Workset in model
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm processing models to repath Revit links. I open a model with all worksets closed as some models will be very large.
When a RevitLinkType is found and it's path needs updating, I'm unable to use ReloadFrom method as the workset is closed (this is possible in the UI). The api doesn't currently support opening worksets while the model is open, which I think is crazy. Ideally, I don't want to open all the worksets when I initially open the model as this is unnecessary as a) no links may need repathing, and b) the performance hit.
I've seen a hack where a new element is created in the workset and the ShowElement method is used. This won't work for me as my models aren't UIDocs (again for performance reasons).
https://forums.autodesk.com/t5/revit-api-forum/open-closed-worksets-in-open-document/td-p/6238121
Does anyone have any suggestions for a way to open a closed workset when a model is open but not activated?
Note - I need to open the model rather than use Transmission data as the models have originated from the cloud and I need to repath links locally (archiving purposes), in this instance cloud link information isn't stored in the Transmission data.
Thanks in advance.