GetServer Method


Returns the instance that provides implementation for a registered server.

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

Syntax

C#
public IExternalServer GetServer(
	Guid serverId
)
Visual Basic
Public Function GetServer ( _
	serverId As Guid _
) As IExternalServer
Visual C++
public:
IExternalServer^ GetServer(
	Guid serverId
)

Parameters

serverId
Type: System Guid
Id of a registered server

Return Value

An instance of the server interface. NULL is returned if the server is invalid (e.g. destroyed)

Exceptions

Exception Condition
Autodesk.Revit.Exceptions 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 →