SaveAsCloudModel is taking more time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Below is my source code.
While debugging I found that below line of code
doc.SaveAsCloudModel(new Guid(hubId), new Guid(projectId), folderId, modelName);
is taking more time and its not stepping to next line .I am able to see the model on ACC but I am not able to get access of Revit Dekstop application as its in freezed state .
I have tested the same code for empty model its working fine. My current model size is 8.33 MB.
Please suggest .
Thanking you in anticipation.
public static async Task<bool> SaveAsCloudWorksharedModel(Document doc, string hubName, string projectName, string folderName , string modelName)
{
string hubId = await GetHubIdByName(hubName);
string projectId = await GetProjectIdByName(hubId, projectName);
string folderId = await GetFolderIdByName(hubId ,projectId, folderName);
hubId = hubId.Substring(2); // skipping prefix b.
projectId = projectId.Substring(2); // skipping prefix b.
try
{
doc.SaveAsCloudModel(new Guid(hubId), new Guid(projectId), folderId, modelName);
if(doc.CanEnableCloudWorksharing())
{
doc.EnableCloudWorksharing();
}
return true;
}
catch (Exception ex)
{
throw;
}
return false;
}