【发布时间】:2019-11-19 22:34:05
【问题描述】:
我想 OpenAndActivateDocument 保存在 BIM360 上,但我收到“文档不存在”错误。
同样的方法可以完美地使用 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);
}
}
【问题讨论】: