GetServer Method


External Service Get Server Method

Returns the instance that provides implementation for a registered server.

Namespace: Autodesk.Revit.DB.ExternalService
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public IExternalServer GetServer(
	Guid serverId
)

Parameters

serverId Guid
Id of a registered server

Return Value

IExternalServer
An instance of the server interface. NULL is returned if the server is invalid (e.g. destroyed)
Exceptions
Exception Condition
ArgumentException The given Id is not a valid GUID value.
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →