GetWorksharingCentralGUID Method


Gets the worksharing central GUID of the given server-based model.

Namespace: Autodesk.Revit.ApplicationServices
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)
Since: 2013

Syntax

C#
public Guid GetWorksharingCentralGUID(
	ServerPath serverModelPath
)
Visual Basic
Public Function GetWorksharingCentralGUID ( _
	serverModelPath As ServerPath _
) As Guid
Visual C++
public:
Guid GetWorksharingCentralGUID(
	ServerPath^ serverModelPath
)

Parameters

serverModelPath
Type: Autodesk.Revit.DB ServerPath
The server-based model path.

Return Value

The worksharing central GUID.

Remarks

The given server-based model saved in a release prior to Revit 2013 did not have this GUID. Only the given server-based model saved in Revit 2013 or later will be able to provide this value.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was NULL
Autodesk.Revit.Exceptions CentralModelException The central model is missing. -or- An internal error happened on the central model, please contact the server administrator.
Autodesk.Revit.Exceptions InapplicableDataException Thrown when the given model is not created in Revit 2013 or later release.
Autodesk.Revit.Exceptions RevitServerCommunicationException The server-based central model could not be accessed because of a network communication error.
Autodesk.Revit.Exceptions RevitServerInternalException An internal error happened on the server, please contact the server administrator.

See Also