Gets ForgeDM folder id where the model locates.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 23.0.0.0 (23.1.0.0)
Since: 2022
Syntax
C# |
---|
public string GetCloudFolderId( bool forceRefresh ) |
Visual Basic |
---|
Public Function GetCloudFolderId ( _ forceRefresh As Boolean _ ) As String |
Visual C++ |
---|
public: String^ GetCloudFolderId( bool forceRefresh ) |
Parameters
- forceRefresh
- Type: System..::..Boolean
Cached value will be refreshed by sending a service call when forceRefresh is true.
Remarks
It is empty for non-cloud model;
It is cached in Revit model opened session after getting it if forceRefresh is false;
ForgeDM folder id can be changed during Revit model opened session, set forceRefresh as 'true' to get new value.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..RevitServerUnauthorizedException | Thrown when cannot get data from ForgeDM for Revit cloud model. |