Skip to content

Commit

Permalink
add support get id cloud project model
Browse files Browse the repository at this point in the history
  • Loading branch information
chuongmep committed Aug 29, 2023
1 parent f3b5469 commit 7b676c6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions OpenMEPRevit/Document/Document.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,13 @@ public static string GetCloudModelUrn(Autodesk.Revit.DB.Document revitDocument)
/// It is cached in Revit model opened session after getting it;
/// </remarks>
/// <exception cref="T:Autodesk.Revit.Exceptions.RevitServerUnauthorizedException">
/// Thrown when cannot get data from ForgeDM for Revit cloud model.
/// </exception>
/// <param name="revitDocument">Autodesk.Revit.DB.Document</param>
/// <returns name="projectId">id of project locates the project</returns>
/// <since>2022</since>
public static string GetProjectId(Autodesk.Revit.DB.Document revitDocument)
{
return revitDocument.GetProjectId();
}
/// <summary>Gets ForgeDM hub id where the model locates. It is cached in session.</summary>
Expand Down

0 comments on commit 7b676c6

Please sign in to comment.