WorksharingUtils.GetUserWorksetInfo
Description:
Gets information about user worksets in a workshared model file, without fully opening the file.
Gets information about user worksets in a workshared model file, without fully opening the file.
Remarks:
This method provides a preview of the user worksets available in a file, allowing an application to look up the necessary workset ids and information to properly fill out a WorksetConfiguration structure before opening or linking to this model.
This method provides a preview of the user worksets available in a file, allowing an application to look up the necessary workset ids and information to properly fill out a WorksetConfiguration structure before opening or linking to this model.
public static IList<WorksetPreview> GetUserWorksetInfo(
ModelPath path
)
-
pathThe path to the workshared model.
Return Value
IList<WorksetPreview>
Information about all the user worksets in the model.
The list is sorted by workset id.
-
A non-optional argument was null
-
Access to the central model was denied due to lack of access privileges. -or- Access to the central model was denied. A possible reason is because the model was under maintenance.
-
The central model are locked by another client.
-
The central model is missing. -or- The central model is corrupt or not an RVT file. -or- The model is not workshared. -or- The central model is overwritten by other user. -or- An internal error happened on the central model, please contact the server administrator.
-
The model could not be accessed due to lack of access privileges.
-
The Revit model specified by path doesn't exist.
-
The model could not be found at the specified path.
-
This functionality is not available in Revit LT.
-
The server-based central model could not be accessed because of a network communication error.
-
An internal error happened on the server, please contact the server administrator.