简体   繁体   English

如何使用 Autodesk Forge Data Management API 在 BIM360 Docs 中上传工作共享 Revit 模型

[英]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.

相关问题 如何使用 Forge 数据管理 API 在 BIM360 Docs 中找到 Revit 文档衍生 URN - How can I find Revit document derivatives URNs in BIM360 Docs using the Forge Data Management API Forge BIM360 数据管理 - Forge BIM360 data management 如何通过 Autodesk-Data-Management-API 在 BIM360 中将先前的项目版本恢复为“当前”版本 - How to Restore a prior item version as "current" in BIM360 via Autodesk-Data-Management-API Model 存储在 BIM360 Docs 中的 Revit 模型的衍生翻译 - Model Derivative Translation of Revit Models stored in BIM360 Docs 通过数据管理API列出BIM360中的模型文件 - Listing model files in BIM360 through data management API 如何使用 javascript/Nodejs 从生成的 urn 中查看 Forge 中的 BIM360 Revit 文件 - How to view BIM360 Revit file in Forge from generated urn using javascript/Nodejs Autodesk-Forge 使用数据管理 API 将多个模型发布到 BIM 360 - Autodesk-Forge Publish multiple models to BIM 360 using the Data Management API 通过 API 将 Revit model 文件上传到 BIM360 并保持链接 - Upload Revit model files to BIM360 via API and keep them linked 如何使用 Forge Design Automation API 将 BIM 360 中的 Revit 文件保存为云 model? - How to save Revit file in BIM 360 as cloud model using Forge Design Automation API? Forge/Bim360:我们如何使用 BIM360 API 使用映射到问题类型的自定义属性创建问题? - Forge/ Bim360: How can we create Issue with custom attributes mapped with issue type using BIM360 API?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM