GetServiceId Method


IExternal Service Get Service Id Method

Implement this method to return the unique Id of the service.

Namespace: Autodesk.Revit.DB.ExternalService
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
ExternalServiceId GetServiceId()

Return Value

ExternalServiceId
The extensible enum value representing the Id of the service.
Remarks

For all built-in external services, their Ids are all items of the enumerated type ExternalServices.BuiltInExternalServices.

Third-party services will have their respective Ids based on GUIDs. It is important to note that a service Id must be unique. It will be an error if two external services try to register with the same Id.

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 →