예제 #1
0
        public void ExportNetworkPackageModule()
        {
            var module = new TMG.Emme.Export.ExportNetworkPackage()
            {
                ScenarioNumber = Helper.CreateParameter(1),
                SaveTo         = Helper.CreateParameter("Exported.nwp"),
                Attributes     = Helper.CreateParameter("all")
            };

            module.Invoke(Helper.Modeller);
        }
예제 #2
0
        public void ExportNetworkPackageModule()
        {
            /*Ensure the project has a valid network to be exported*/
            var importModule = new Emme.Import.ImportNetworkPackage()
            {
                Name                = "Importer",
                ScenarioNumber      = Helper.CreateParameter(1, "Const Number"),
                NetworkPackageFile  = Helper.CreateParameter(Path.GetFullPath("TestFiles/test.nwp"), "NWP File Name"),
                ScenarioDescription = Helper.CreateParameter("From XTMF", "Description")
            };

            importModule.Invoke(Helper.Modeller);

            var module = new TMG.Emme.Export.ExportNetworkPackage()
            {
                ScenarioNumber = Helper.CreateParameter(1),
                SaveTo         = Helper.CreateParameter("Exported.nwp"),
                Attributes     = Helper.CreateParameter("all")
            };

            module.Invoke(Helper.Modeller);
        }