RevitLinkType.LoadFrom consumed model fails since unable to create a ModelPath ModelPathUtils.ConvertCloudGUIDsToCloudPath

RevitLinkType.LoadFrom consumed model fails since unable to create a ModelPath ModelPathUtils.ConvertCloudGUIDsToCloudPath

Rockit_for_Revit
Advocate Advocate
322 Views
4 Replies
Message 1 of 5

RevitLinkType.LoadFrom consumed model fails since unable to create a ModelPath ModelPathUtils.ConvertCloudGUIDsToCloudPath

Rockit_for_Revit
Advocate
Advocate

NewModelPath = ModelPathUtils.ConvertCloudGUIDsToCloudPath(
currentDocPath.Region,
currentDocPath.GetProjectGUID,
modelGuid)

 

 

  • ConvertCloudGUIDsToCloudPath requires the Revit Cloud Model GUID (modelGuid) and valid access to the model in ACC.

  • If the model is a “consumed” model from another project or hub and your account lacks the proper permissions, Revit cannot create a ModelPath.

  • Feeding a version ID (bf…) or URN into ConvertCloudGUIDsToCloudPath does not work — it must be the true Model GUID from attributes.extension.data.modelGuid.

Please can you help me reload linked consumed models.

 

0 Likes
323 Views
4 Replies
  • ACC
Replies (4)
Message 2 of 5

ctm_mka
Collaborator
Collaborator

first,are you getting a specific error?

second, how are you telling your program where the consumed model is/getting its modelGUID? browsing to it or other?

0 Likes
Message 3 of 5

Rockit_for_Revit
Advocate
Advocate

Hello,

Given the hubid, projectid and folderid I get the modelguid:

SafeGet(c4rModelVersion, "attributes.extension.data.modelGuid")

Regards

David

0 Likes
Message 4 of 5

Rockit_for_Revit
Advocate
Advocate

Note that the process works for linked models in folders where I have permissions to open the model. But not for models I can link but not open.

0 Likes
Message 5 of 5

ctm_mka
Collaborator
Collaborator

Interesting. I also verified that behavior on my end (not being to see a consumed model in Revit, therefore not being able to open). Seems to be not a programming problem, but a permissions issue. I suggest talking to the hosting sites BIM Manager to see if it's easy to fix on the permissions side. Other than that....unless there's some other way to get to it, no idea. @jeremytammik would you be so kind and poke the Dev team on this issue?

0 Likes