| Revit 2023 API |
| Document..::..GetHubId Method |
| Document Class See Also |
Gets ForgeDM hub id where the model locates. It is cached in session.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 23.0.0.0 (23.1.0.0)
Since:
2022
Syntax
| C# |
|---|
public string GetHubId() |
| Visual Basic |
|---|
Public Function GetHubId As String |
| Visual C++ |
|---|
public: String^ GetHubId() |
Remarks
It is empty for non-cloud model;
It is cached in Revit model opened session after getting it;
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..RevitServerUnauthorizedException | Thrown when cannot get data from ForgeDM for Revit cloud model. |