Autodesk.Revit.DB.Events.DocumentSynchronizingWithCentralEventArgs 是Revit中用于表示文档与中心模型同步事件的参数类。
DocumentSynchronizingWithCentralEventArgs(Document document, SynchronizeWithCentralOptions options, IEnumerable<SynchronizeWithCentralPathType> pathTypes, SynchronizeWithCentralOperation operation)
构造一个新的 DocumentSynchronizingWithCentralEventArgs 实例。
参数:
document :要同步的文档对象。options:同步参数选项。pathTypes:同步路径选项。operation:同步操作选项。Document:要同步的文档对象。Options:同步参数选项。PathTypes:同步路径选项。Operation:同步操作选项。public void OnDocumentSynchronizingWithCentral(object sender, DocumentSynchronizingWithCentralEventArgs args)
{
Document currentDocument = args.Document;
SynchronizeWithCentralOptions syncOptions = args.Options;
IEnumerable<SynchronizeWithCentralPathType> pathTypes = args.PathTypes;
SynchronizeWithCentralOperation operation = args.Operation;
// 对文档同步事件进行处理。
}