简体   繁体   English

将工作共享 model 保存为云 model 到 BIM360

[英]Save a workshared model as a cloud model to BIM360

Is it possible to save a workshared model to BIM360 as a workshared cloud model using Revit API and/or Forge API? Is it possible to save a workshared model to BIM360 as a workshared cloud model using Revit API and/or Forge API?

I have multiple models that I wish to upload on BIM360, but from what I see the SaveAsCloudModel method that is currently available in Revit 2021 API and described in this post only works with non-workshared models.我希望在 BIM360 上上传多个模型,但据我所知,Revit 2021 API 中当前可用SaveAsCloudModel方法仅适用于非工作共享模型。 Is there any other method?还有其他方法吗?

The SaveAsCloudModel function is available since Revit 2019.2, and you can follow my code snippet shared here to activate the cloud worksharing: SaveAsCloudModel function 自 Revit 2019.2 起可用,您可以按照我在此处共享的代码片段来激活云工作共享:

https://thebuildingcoder.typepad.com/blog/2019/11/initiating-bim360-collaboration-and-linking.html https://thebuildingcoder.typepad.com/blog/2019/11/initiating-bim360-collaboration-and-linking.html

BTW, you need to install the Revit 2019.2 service package before coding.顺便说一句,您需要在编码之前安装 Revit 2019.2 服务 package。

According to Revit API Docs , this functionality has been added in Revit 2022 API根据Revit API Docs ,此功能已添加到 Revit 2022 API

SaveAsCloudModel() now supports save of a new Revit Cloud Worksharing central model The method: SaveAsCloudModel() 现在支持保存新的 Revit Cloud Worksharing Central model 方法:

Document.SaveAsCloudModel(Guid, Guid, String, String) has been enhanced to support upload of local workshared file into BIM 360 Design as a Revit Cloud Worksharing central model. Document.SaveAsCloudModel(Guid, Guid, String, String) 已得到增强,支持将本地工作共享文件上传到 BIM 360 Design 作为 Revit Cloud Worksharing Central model。

In addition, the exception UnauthenticatedUserException is removed from the documented exceptions for this method.此外,从该方法的记录异常中删除了异常 UnauthenticatedUserException。

Additional References附加参考

Similar question in Autodesk forum: Initiate cloud collaboration for a workshared model Autodesk 论坛中的类似问题: Initiate cloud contrast for a workshared model

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM