GetHubId Method


Document Get Hub Id Method

Gets ForgeDM hub id where the model locates. It is cached in session.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public string GetHubId()

Return Value

String
Exceptions
Exception Condition
RevitServerUnauthorizedException Thrown when cannot get data from ForgeDM for Revit cloud model.
Remarks
It is empty for non-cloud model; It is cached in Revit model opened session after getting it;
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 →