/// <summary> /// This node provides access to all of the open documents in revit. /// </summary> /// <param name="runIt">Do you want to save?</param> /// <returns name="documents">The documents that are currently open.</returns> public static List <string> GetOpenDocuments(bool runIt) { Autodesk.Revit.DB.Document doc = DocumentManager.Instance.CurrentDBDocument; List <string> docNames = new List <string>(); var uiApp = DocumentManager.Instance.CurrentUIApplication; var app = uiApp.Application; foreach (Document d in app.Documents) { if (d.Title != doc.Title) { try { docNames.Add(DocumentUtils.ConvertDocument(doc)); } catch (Exception) { //nothing } } } return(docNames); }