Revit 2025 API
Single |
Returns the Id of the server currently associated with the given document for the service.
Namespace: Autodesk.Revit.DB.ExternalService
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public Guid GetActiveServerId( Document document )
Public Function GetActiveServerId ( document As Document ) As Guid
public: Guid GetActiveServerId( Document^ document )
member GetActiveServerId : document : Document -> Guid
Parameters
- document Document
- The document for which the server is being set as active.
Return Value
GuidThe Guid of the active server, or an invalid Guid if there is no active server assigned.

Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |
See Also