[英]How to Upload a worksharing Revit model in BIM360 Docs using Autodesk Forge Data Management API
I have been following those two links to Upload an RVT File:我一直在关注这两个链接来上传 RVT 文件:
And POST items works fine as long as the type of file is "item:autodesk.bim360:File".只要文件类型为“item:autodesk.bim360:File”, POST 项目就可以正常工作。
The problem is that if you browse through Autodesk Docs in Revit, the .RVT file will not be visible.问题是,如果您在 Revit 中浏览 Autodesk Docs,.RVT 文件将不可见。
Worksharing model have the type "items:autodesk.bim360:C4RModel" instead.工作共享模型的类型为“items:autodesk.bim360:C4RModel”。
But if I try to post the same item with the type: " items:autodesk.bim360:C4RModel " I get the strange following error:但是,如果我尝试使用以下类型发布相同的项目:“ items:autodesk.bim360:C4RModel ”,我会收到以下奇怪的错误:
CATCH ERR failed to create an item: {
id: '5c2fb263-c2fd-45d1-b213-0c38d26de9c1',
status: '403',
code: 'USER_NOT_AUTHENTICATED',
detail: "The client_id is not whitelisted for schema 'items:autodesk.bim360:C4RModel' access." }
Note: I tried with both 3-legged and 2 legged with x-user-id.注意:我使用 x-user-id 尝试了 3 条腿和 2 条腿。
If I post the item with the type " items:autodesk.bim360:File " and then try to Publish Model using CommandsApi, then I get the following error:如果我发布类型为“ items:autodesk.bim360:File ”的项目,然后尝试使用 CommandsApi 发布模型,则会收到以下错误:
{ statusCode: 500, statusMessage: 'InternalServerError' }
CATCH ERR failed to publish an item. {
id: '610f1aa8-68d5-4adc-be26-7fd7228a02e9',
status: '500',
code: 'C4R',
detail: 'Failed to publish model'
}
So how can I upload a model and then convert it to a Worksharing model?那么如何上传模型,然后将其转换为 Worksharing 模型? Can it be done?可以做到吗? Any Help would be much appreciated.任何帮助将非常感激。
Unfortunately, you will need to initialize the Cloud Worksharing model using Revit API with Revit Desktop at this moment.不幸的是,此时您需要使用 Revit API 和 Revit Desktop 来初始化 Cloud Worksharing 模型。 You cannot use the items:autodesk.bim360:C4RModel
type to do so as I know.据我所知,您不能使用items:autodesk.bim360:C4RModel
类型来执行此操作。
See here for the details of initialize the Cloud Worksharing models using Revit API有关使用 Revit API 初始化 Cloud Worksharing 模型的详细信息,请参见此处
https://forums.autodesk.com/t5/revit-api-forum/initiate-cloud-collaboration-for-a-workshared-model/mp/10114585/highlight/true#M53859 https://forums.autodesk.com/t5/revit-api-forum/initiate-cloud-collaboration-for-a-workshared-model/mp/10114585/highlight/true#M53859
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.