Ejemplo n.º 1
0
        /// <summary>
        ///     Initiates the export of the data model from Aras.
        /// </summary>
        /// <param name="options">The <see cref="ArgOptions"/> the program was started with.</param>
        /// <returns>An <see cref="ArasExport"/> object that holds the exported data model.</returns>
        private static ArasExport PerformArasExport(ArgOptions options)
        {
            var arasExport = new ArasExport(options);

            arasExport.RunExport();
            arasExport.SplitAllItemTypes();
            return(arasExport);
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     Initiates the Aras export and .dot graph creation and export.
        /// </summary>
        /// <remarks>
        ///     Only gets called if the command line arguments were parsed successfully.
        /// </remarks>
        /// <param name="options">The <see cref="ArgOptions"/> the program was started with.</param>
        private static void RunOptionsAndPerformLogic(ArgOptions options)
        {
            var arasExport   = PerformArasExport(options);
            var graphCreator = new GraphCreator(arasExport);

            graphCreator.CreateGraph(options.RelsAsClasses);
            graphCreator.ExportGraph(options.FilePath ?? @"C:\temp\temp.dot");
        }