Revit API:SaveAsCloudModel 失败并出现异常:云模型权利
一个特定的 BIM360 中心 API:Autodesk.Revit.DB.Document:SaveAsCloudModel(Guid accountId, Guid projectId, stringfolderId, string modelName) 引发异常: 您没有云模型权限来访问云中的此资源。许多其他中心称此没有任何问题。
用户可以在同一台计算机上手动保存到具有相同文件的完全相同的 bim360 项目/文件夹组合。
在manage.autodesk.com 中检查了所有项目的用户和管理员权限作为BIM Collaborate Pro 的权限。
id 是正确的。在日志中,在 api 调用之前: Utility.getEntitlement:找到 Skyscraper 的权利。
One one particular BIM360 hub the API: Autodesk.Revit.DB.Document: SaveAsCloudModel(Guid accountId, Guid projectId, string folderId, string modelName) throws the exception:
You do not have cloud model entitlement to access this resource in cloud. Many other hubs call this without any issues.
The user can manually save to the same exact bim360 project/folder combination with the same file on the same machine.
The rights were checked in the manage.autodesk.com as BIM Collaborate Pro for the user and admin rights to all projects.
The ids are correct. In the journal, before the api call: Utility.getEntitlement: The entitlement is Skyscraper is found.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
私下解决了该问题,但在此处附加详细信息以帮助其他人。
实际上,用户拥有 Skyscraper(工作共享云模型)权利,但用户没有单用户权利。
用户创建了一个非工作共享云模型并想要将其转换为工作共享云模型,但在保存非工作共享模型的第一步失败,因为他没有单用户权利。
建议是:
在本地启用工作共享(就像他在 Revit 本地文件中启用工作共享一样);
调用 saveAsCloudModel API。
Solved the issue privately, but append the details here to help others.
Actually, the user has Skyscraper (workshared cloud model) entitlement, but the user doesn't have Single user entitlement.
The user created a non-workshare cloud model and wanted to convert it workshared cloud model, but it failed at the 1st step to save the non-worksharing model because he did not have Single user entitlement .
The suggestion is:
Enable worksharing locally (like he enable a worksharing in revit local file);
Call saveAsCloudModel API.