简体   繁体   English

如何使用Revit 2018打开和激活BIM 360文档?

[英]How to open and activate BIM 360 document with Revit 2018?

I want to OpenAndActivateDocument that is kept on BIM360, but I am getting an error as "Document does not exist". 我想打开保存在BIM360上的OpenAndActivateDocument,但由于“文档不存在”而出现错误。

The same method is working with Revit 2019 flawlessly. 相同的方法可以完美地与Revit 2019一起使用。

if (RevitObject.rvtUiDoc.Document.IsWorkshared)
{
       ModelPath MyCentralFile = doc.GetWorksharingCentralModelPath();

       if (MyCentralFile != null)
       {
            OpenOptions openoptions = new OpenOptions();

            RevitObject.rvtUiApp.OpenAndActivateDocument(MyCentralFile, 
            openoptions, false);


            RevitObject.rvtUiDoc.ActiveView = activeView;

            if (otherDoc != null)
                otherDoc.Close(false);
       }
}

Basically it is not supported in the Revit API in 2018- only 2019+. 基本上,仅在2018年以上的Revit API(仅2019年以上)中不支持它。

Unfortunate but true. 不幸但真实。

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

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