SaveAsCloudModel is taking more time

SaveAsCloudModel is taking more time

dayanand_rakte
Participant Participant
66 Views
2 Replies
Message 1 of 3

SaveAsCloudModel is taking more time

dayanand_rakte
Participant
Participant

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;
}

0 Likes
67 Views
2 Replies
Replies (2)
Message 2 of 3

ctm_mka
Collaborator
Collaborator

curious, is your intent to create a new model on ACC each time? how often are you running this? are you overwriting or creating it in a different location?

0 Likes
Message 3 of 3

dayanand_rakte
Participant
Participant

I am uploading my local Revit model on cloud.This will happen on a button click event.Where I am doing some stuffs and uploading this model on cloud.
Now I am getting Exception "Internal Error..."

0 Likes