static void Main(string[] args) { int packageID; String[] list; EA.DocumentGenerator doc = r.CreateDocumentGenerator(); try { Console.WriteLine("Введите наименование файла модели"); r.OpenFile(Environment.CurrentDirectory + "\\" + Console.ReadLine()); EA.Project project = new EA.Project(); Console.WriteLine("Введите наименование выходного файла"); String path = Environment.CurrentDirectory + "\\" + Console.ReadLine(); Console.WriteLine("Введите путь к пакету. разделительный символ - \\"); list = Console.ReadLine().Split('\\'); packageID = getPackageId(list); Console.WriteLine("Документирую!"); //////////////// project.RunReport(r.GetPackageByID(packageID).PackageGUID, "sequential", path); Console.WriteLine("OK"); } catch (Exception e) { Console.WriteLine(e.GetBaseException()); Console.ReadLine(); } finally { r.CloseFile(); r.Exit(); } }
public EA.DocumentGenerator CreateDocumentGenerator() { return(eaRepository.CreateDocumentGenerator()); }