I Have a piece of program in which I open a cloud model, I have 2 projects on the https://docs.b360.autodesk.com server, they open like a charme
A new project which we are starting is on https://docs.b360.eu.autodesk.com (europe) server. when I use the same software I get an error code 5 - the central model is missing.
Does anybody recognize this problem ?
Try
Dim mpcloud As ModelPath = ModelPathUtils.ConvertCloudGUIDsToCloudPath(ProjectGUID, ModelGUID)
Dim DOfcc As New DefaultOpenFromCloudCallback
ActiveUIDoc = app.OpenAndActivateDocument(mpcloud, oo, False, DOfcc)
ActiveDoc = ActiveUIDoc.Document
Catch
LogForm.AddLog("Could not open cloud model. " & Err.Number & " - " & Err.Description)
Err.Clear()
End Try
Solved! Go to Solution.
Solved by jeremy_tammik. Go to Solution.
Maybe you need to update your Revit version.
The current Revit API includes a region parameter in the call to ConvertCloudGUIDsToCloudPath:
https://www.revitapidocs.com/2022/aa710231-4cab-98ba-951f-00c72e06bb6e.htm
Hi Jeremy
I think I've covered a lot of the links and topics on the forum but there is one question that remains unanswered for me:
To open a file that is on accdocs, we can use the method: ConvertCloudGUIDsToCloudPath ok, (you wrote it the new functionnlyty here, https://thebuildingcoder.typepad.com/blog/2018/04/whats-new-in-the-revit-2019-api.html#4.1.5) a but how to retrieve the Guid of a file that has never been opened yet (so, not being in the CollaborationCache folder)?
Like other files wich are located in my network, I want to open documents wich are une the cloud...
With VisualStudio, I've added the Autodesk Forge reference.
Do I have to get a Token Key in order to Open Revit files wich are in the accdocs of my client?
Hope I'm clear...
Dear Pierre, I asked the devteam for you.
Based on the competent answer you received in the other thread on a Problem getting cloud path from files in BIM360, I cancelled the query to the devtam again:
Dear Jeremy
I was afraid of not having an answer so I published my question in two topics. Thank you for answering me.
Dear Pierre,
Thank you very much for moving the ACC Docs related part of the question to StackOverflow:
https://stackoverflow.com/questions/75530623/open-files-located-in-the-accdocs
Eason Kang very kindly answered it there and provided a complete explanation of how to use APS to retrieve the region, projectGuid and modelGuid data required to populate the arguments to ConvertCloudGUIDsToCloudPath.
Best regards,
Jeremy