Example #1
0
        static void Main(string[] args)
        {
            String projectName;
            String outputPath;

            if (args.Length == 2)
            {
                projectName = args[0];
                outputPath  = args[1];
                string path = Path.GetFullPath(outputPath);

                // Setup Connection to GENESYS
                client = new ClientModel();
                RepositoryConfiguration  repositoryConfiguration = client.GetKnownRepositories().LocalRepository;
                GenesysClientCredentials credentials             = new GenesysClientCredentials("utility", "", AuthenticationType.GENESYS);
                repositoryConfiguration.Login(credentials);
                Console.WriteLine("Logged In!");

                Repository repository = repositoryConfiguration.GetRepository();
                IProject   project    = repository.GetProject(projectName);

                // Process JSON input for Tables and Diagrams
                CreateTables(project, outputPath);
                CreateDiagrams(project, outputPath);

                client.Dispose();
                Console.WriteLine("Close Connection");
                System.Environment.Exit(0);
            }
            else
            {
                Console.WriteLine("Usage: <project name> <output path>");
            }
        }