GetDBServerId Method


IExternal Resource UIServer Get DBServer Id Method

Implement this method to return the id of the server which is associated with this UI server.

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
Guid GetDBServerId()

Return Value

Guid
The id of the associated DB server.
Remarks
If there's no DB server associated with this UI server, an empty GUID value will be returned.
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →