From f231a34a0bf30af4722631dfec638802a2fe391b Mon Sep 17 00:00:00 2001 From: jose-alatorre <71753814+jose-alatorre@users.noreply.github.com> Date: Mon, 13 Nov 2023 14:00:37 -0800 Subject: [PATCH] improving process of updating OD map tableau data - create script to run multiple batch files sequentially - edit TraceDApaths.bat to take in OD lists as arguments --- .../public_engagement/TraceDApaths.bat | 6 +++++ .../UpdateMapDataForNewOD.bat | 27 ++++++++++++++++--- 2 files changed, 29 insertions(+), 4 deletions(-) diff --git a/utilities/NextGenFwys/public_engagement/TraceDApaths.bat b/utilities/NextGenFwys/public_engagement/TraceDApaths.bat index 130b25b47..86069bb84 100644 --- a/utilities/NextGenFwys/public_engagement/TraceDApaths.bat +++ b/utilities/NextGenFwys/public_engagement/TraceDApaths.bat @@ -33,7 +33,13 @@ Cluster "%COMMPATH%\CTRAMP" 1-48 Starthide Exit :: use comma seperated values :: ------------------------------ +:: Set default values for ORIGIN and DESTINATION set ORIGIN=9,138,106,128,113,16,110,971,969,946,945,979,970,968,967,972,947,558,557,549,548,563,448,391,413,377,381,388,379,456,445,409,410,412,415,416,411 set DESTINATION=9,138,106,128,113,16,110,731,733,1188,1194,1190,1187,729,730,732,734,1183,1191,1193,1184,1065,1056,1058,1049,1060,1059,1050,309,304,317,315,313,312,325,531,529,681,564,559,528,526,323,320,301,524,525,487,491,485,490,488,484,479,460 + +:: Check if arguments are passed, otherwise use default values +if not "%1"=="" set ORIGIN=%1 +if not "%2"=="" set DESTINATION=%2 + runtpp X:\travel-model-one-master\utilities\NextGenFwys\public_engagement\HwyAssign_trace.job diff --git a/utilities/NextGenFwys/public_engagement/UpdateMapDataForNewOD.bat b/utilities/NextGenFwys/public_engagement/UpdateMapDataForNewOD.bat index 6e1070aaf..e65602aa7 100644 --- a/utilities/NextGenFwys/public_engagement/UpdateMapDataForNewOD.bat +++ b/utilities/NextGenFwys/public_engagement/UpdateMapDataForNewOD.bat @@ -1,13 +1,32 @@ :: update paths based on mapped drives on respective modeling server +set ORIGIN_LIST=1,2,3,4,5 +set DESTINATION_LIST=10,20,30,40,50 + +@echo off + +:: saved on \\model3-a\Model3A-Share +X: +cd X:\Projects\2035_TM152_NGF_NP10_Path1a_02 +Set PATH=%PATH%;C:\Program Files\Citilabs\CubeVoyager;C:\Program Files\Citilabs\VoyagerFileAPI +call X:\travel-model-one-master\utilities\NextGenFwys\public_engagement\TraceDApaths.bat %ORIGIN_LIST% %DESTINATION_LIST% + +:: saved on \\model3-a\Model3A-Share +X: cd X:\Projects\2035_TM152_NGF_NP10_Path1a_02 Set PATH=%PATH%;C:\Program Files\Citilabs\CubeVoyager;C:\Program Files\Citilabs\VoyagerFileAPI -X:\travel-model-one-master\utilities\NextGenFwys\public_engagement\TraceTransitPaths.bat +call X:\travel-model-one-master\utilities\NextGenFwys\public_engagement\TraceTransitPaths.bat -cd Y:\Projects\2035_TM152_NGF_NP10_Path4_02 +::saved on \\MODEL2-C\Model2C-Share +Z: +cd Z:\Projects\2035_TM152_NGF_NP10_Path4_02 Set PATH=%PATH%;C:\Program Files\Citilabs\CubeVoyager;C:\Program Files\Citilabs\VoyagerFileAPI -X:\travel-model-one-master\utilities\NextGenFwys\public_engagement\TraceTransitPaths.bat +call X:\travel-model-one-master\utilities\NextGenFwys\public_engagement\TraceTransitPaths.bat +:: saved on \\MODEL2-D\Model2D-Share +F: cd F:\Projects\2035_TM152_NGF_NP10 Set PATH=%PATH%;C:\Program Files\Citilabs\CubeVoyager;C:\Program Files\Citilabs\VoyagerFileAPI -X:\travel-model-one-master\utilities\NextGenFwys\public_engagement\TraceTransitPaths.bat +call X:\travel-model-one-master\utilities\NextGenFwys\public_engagement\TraceTransitPaths.bat + +pause \ No newline at end of file