/// <summary> /// Runs a Revit Batch Processing task, with advanced options available. The Revit file list is provided by the specified Excel or text file path. /// </summary> /// <param name="toggleToExecute"></param> /// <param name="taskScriptFilePath"></param> /// <param name="revitFileListFilePath"></param> /// <param name="useRevitVersion"></param> /// <param name="centralFileOpenOption"></param> /// <param name="discardWorksetsOnDetach"></param> /// <param name="deleteLocalAfter"></param> /// <param name="openLogFileWhenDone"></param> /// <param name="logFolderPath"></param> /// <param name="fileProcessingTimeOutInMinutes"></param> /// <param name="fallbackToMinimumAvailableRevitVersion"></param> /// /// <returns></returns> public static string RunTaskOnListFile( bool toggleToExecute, // TODO: reconsider if this is needed here. string taskScriptFilePath, string revitFileListFilePath, // Input is a file path to a list of Revit file paths. UseRevitVersion useRevitVersion, CentralFileOpenOption centralFileOpenOption, bool discardWorksetsOnDetach, bool deleteLocalAfter, bool openLogFileWhenDone, string logFolderPath, int fileProcessingTimeOutInMinutes, bool fallbackToMinimumAvailableRevitVersion ) { return(BatchRvtTasks.RunTask( taskScriptFilePath, revitFileListFilePath, BatchRvt.RevitProcessingOption.BatchRevitFileProcessing, (BatchRvtTasks.UseRevitVersion)useRevitVersion, (BatchRvt.CentralFileOpenOption)centralFileOpenOption, discardWorksetsOnDetach, deleteLocalAfter, openLogFileWhenDone, logFolderPath, fileProcessingTimeOutInMinutes, fallbackToMinimumAvailableRevitVersion, taskData: null, testModeFolderPath: null )); }
/// <summary> /// Runs a Revit Batch Processing task. The Revit file list is provided as a list of strings. /// </summary> /// <param name="toggleToExecute"></param> /// <param name="taskScriptFilePath"></param> /// <param name="revitFileList"></param> /// <param name="useRevitVersion"></param> /// <param name="centralFileOpenOption"></param> /// <param name="discardWorksetsOnDetach"></param> /// <param name="deleteLocalAfter"></param> /// <param name="openLogFileWhenDone"></param> /// <returns></returns> public static string RunTask( bool toggleToExecute, // TODO: reconsider if this is needed here. string taskScriptFilePath, IEnumerable <string> revitFileList, UseRevitVersion useRevitVersion, CentralFileOpenOption centralFileOpenOption, bool discardWorksetsOnDetach, bool deleteLocalAfter, bool openLogFileWhenDone ) { return(BatchRvtTasks.RunTask( taskScriptFilePath, revitFileList, // Input is a list of Revit file paths. (BatchRvtTasks.UseRevitVersion)useRevitVersion, (BatchRvt.CentralFileOpenOption)centralFileOpenOption, discardWorksetsOnDetach, deleteLocalAfter, openLogFileWhenDone, taskData: null, testModeFolderPath: null )); }