Dokumentation zu: NxDataProcessing_2013_09 (C) J.Feuerstein 
Erstellt: 05.09.2013    S.Gueth
Stand   : 28.04.2014    S.Gueth

--------------------------------------------------------------------------------------------------------------------------------------------------------------------
#Doc: Aktion: #Bschreibung: [#New ]
      
CLA CommandLineArguments:
-------------------------

JobManagerCmdTools.exe -Action "NxDataProcessing_2013_09" 
 -SubAction             JTInputListGen                                         #Doc: generates the input list to extract jt files
 -JobRoot_DP            "xx"                                                   #Doc: Root.Verzeichniss in dem die JobDaten liegen
 -ObjectList_SP_DPNE    "c:\list_sp.txt"                                       #Doc: path and name of the list for the single parts
 -ObjectList_AP_DPNE    "c:\list_ap.txt"                                       #Doc: path and name of the list for the assambly parts
 -ObjectList_NP_DPNE    "c:\list_np.txt"                                       #Doc: path and name of the list for the no parts

Examples:
#Doc: New: 2.1200;05.09.2013;S.Gueth
-Action "NxDataProcessing_2013_09" -SubAction JTInputListGen -JobRoot_DP "V:\CustomersDataL\addPLM\2013-09-05\tceng_GenericExample_00171_CustomerNameShort" -ObjectList_SP_DPNE "V:\CustomersDataL\addPLM\2013-09-05\tceng_GenericExample_00171_CustomerNameShort\list_sp.txt" -ObjectList_AP_DPNE "V:\CustomersDataL\addPLM\2013-09-05\tceng_GenericExample_00171_CustomerNameShort\list_ap.txt" -ObjectList_NP_DPNE "V:\CustomersDataL\addPLM\2013-09-05\tceng_GenericExample_00171_CustomerNameShort\list_np.txt"


--------------------------------------------------------------------------------------------------------------------------------------------------------------------

JobManagerCmdTools.exe -Action "NxDataProcessing_2013_09" 
 -SubAction						JTEvaluateResult                                       #Doc: generates the input list to extract jt files
 -JobRoot_DP					"xx"                                                   #Doc: Root.Verzeichniss in dem die JobDaten liegen
 -JT_DP							"C:\path\to\JT\files"                                  #Doc: path to the JT files
 -JT_Log						"C:\path\to\JT\files"                                  #Doc: path to the JT logs
 -JobMgrDataOrg_Root_DP			"C:\path\to\nxdataorg\root"							   #Doc: path to jobmanager data org root
 -JobMgrDataOrg_BaseNameSchema	"RootPP1_N=JTData"									   #Doc: optional basename schema, name the direcotry

Examples:
#Doc: New: 2.1200;05.09.2013;S.Gueth
-Action "NxDataProcessing_2013_09" -SubAction JTEvaluateResult -JobRoot_DP V:\CustomersDataL\Dorst\2013-09-06\dor1_JTExport_00013_Dorst -JT_DP V:\CustomersDataL\Dorst\2013-09-06\dor1_JTExport_00013_Dorst\JTgen\JTs -JT_Log V:\CustomersDataL\Dorst\2013-09-06\dor1_JTExport_00013_Dorst\JTgen 
-Action "NxDataProcessing_2013_09" -SubAction JTEvaluateResult -JobRoot_DP V:\CustomersDataL\Dorst\2013-09-06\dor1_JTExport_00013_Dorst -JT_DP V:\CustomersDataL\Dorst\2013-09-06\dor1_JTExport_00013_Dorst\JTgen\JTs -JT_Log V:\CustomersDataL\Dorst\2013-09-06\dor1_JTExport_00013_Dorst\JTgen  -pauseOnEnd -JobData2ResultsDoPrint
-Action "NxDataProcessing_2013_09" -SubAction JTEvaluateResult -JobRoot_DP V:\CustomersDataL\Dorst\2013-09-09\dor1_JTExport_00020_Dorst -JT_DP V:\CustomersDataL\Dorst\2013-09-09\dor1_JTExport_00020_Dorst\JTgen\JTs -JT_Log V:\CustomersDataL\Dorst\2013-09-09\dor1_JTExport_00020_Dorst\JTgen -JobMgrDataOrg_Root_DP V:\CustomersDataL\Dorst\2013-09-09\DataOrg -JobMgrDataOrg_BaseNameSchema "RootPP1_N=JTData" -pauseOnEnd -JobData2ResultsDoPrint
-Action "NxDataProcessing_2013_09" -SubAction JTEvaluateResult -JobRoot_DP V:\CustomersDataL\Dorst\2013-09-09\dor1_JTExport_00020_Dorst -JT_DP #JobRoot_DP#\JTgen\JTs -JT_Log V:\CustomersDataL\Dorst\2013-09-09\dor1_JTExport_00020_Dorst\JTgen -JobMgrDataOrg_Root_DP V:\CustomersDataL\Dorst\2013-09-09\DataOrg -JobMgrDataOrg_BaseNameSchema "RootPP1_N=JTData" -pauseOnEnd -JobData2ResultsDoPrint



--------------------------------------------------------------------------------------------------------------------------------------------------------------------
#Doc: Aktion: JTUpdateInputListGen #Bschreibung: [New: 2.1210;28.04.2014;S.Gueth]
      
CLA CommandLineArguments:
-------------------------

JobManagerCmdTools.exe -Action "NxDataProcessing_2013_09" 
 -SubAction             JTUpdateInputListGen                                   #Doc: generates the input list to extract jt files
 -JobRoot_DP            "xx"                                                   #Doc: Root.Verzeichniss in dem die JobDaten liegen
 -ObjectList_SP_DPNE    "c:\list_sp.txt"                                       #Doc: path and name of the list for the single parts
 -ObjectList_AP_DPNE    "c:\list_ap.txt"                                       #Doc: path and name of the list for the assembly parts

Examples:
#Doc: New: 2.1210;28.04.2014;S.Gueth
-Action "NxDataProcessing_2013_09" -SubAction JTUpdateInputListGen -JobRoot_DP "V:\CustomersDataL\IEC\ExampleData\2014-04-24\tceng_GenericExample_00222_CustomerNameShort" -ObjectList_SP_DPNE "V:\CustomersDataL\IEC\ExampleData\2014-04-24\tceng_GenericExample_00222_CustomerNameShort\JobTemp\list_sp.txt" -ObjectList_AP_DPNE "V:\CustomersDataL\IEC\ExampleData\2014-04-24\tceng_GenericExample_00222_CustomerNameShort\JobTemp\list_ap.txt" -JobData1ToProcessDoPrint -JobData2ResultsDoPrint -JobParaDoPrint -verbose -pauseOnEnd




--------------------------------------------------------------------------------------------------------------------------------------------------------------------
#Doc: Aktion: JTUpdateLogFileEval #Bschreibung: [New: 2.1210;28.04.2014;S.Gueth]
      
CLA CommandLineArguments:
-------------------------

JobManagerCmdTools.exe -Action "NxDataProcessing_2013_09" 
 -SubAction             JTUpdateLogFileEval                                    #Doc: generates the input list to extract jt files
 -JobRoot_DP            "xx"                                                   #Doc: Root.Verzeichniss in dem die JobDaten liegen
 -LogFilesDir			"C:\path\to\JT\files"                                  #Doc: path to the directory where the jt logs are


Examples:
#Doc: New: 2.1210;28.04.2014;S.Gueth
-Action "NxDataProcessing_2013_09" -SubAction "JTUpdateLogFileEval" -JobRoot_DP "V:\CustomersDataL\IEC\ExampleData\2014-04-24\tceng_GenericExample_00222_CustomerNameShort" -LogFilesDir "V:\CustomersDataL\IEC\ExampleData\2014-04-24\tceng_GenericExample_00222_CustomerNameShort\JobTemp\JobJT1" -JobData1ToProcessDoPrint -JobData2ResultsDoPrint -JobParaDoPrint -verbose -pauseOnEnd
-Action "NxDataProcessing_2013_09" -SubAction "JTUpdateLogFileEval" -JobRoot_DP "V:\CustomersDataL\IEC\2014-05-20-ExampleData\TCQ05R30_RfNct_51JtGen_00119_SiIEC" -LogFilesDir "V:\CustomersDataL\IEC\2014-05-20-ExampleData\TCQ05R30_RfNct_51JtGen_00119_SiIEC" -JobData2ResultsDoPrint -JobParaDoPrint -verbose -pauseOnEnd


--------------------------------------------------------------------------------------------------------------------------------------------------------------------
#Doc: Aktion: NXMacroExecute #Bschreibung: [New: 2.1210;04.12.2014;J.Fes]
With this Tool you can run an NXTemplate.macro for each NX.Dataset it is containd in the Job
      
CLA CommandLineArguments:
-------------------------

Parameters:
JobManagerCmdTools.exe 
  -Action                                "NxDataProcessing_2013_09" 
  -SubAction                             "NXMacroExecute"                          #Doc: triggers Subaction NXMacroExecute
  -JobRoot_DP                            "%JobRoot_DP%"                            #Doc: Root.Dir of Job 
  -NXFindCondition10_TitlesNoPart        "NX 8.5 -;NX 8.5 - [No Part]"             #Doc: Title of NX Application if NX is started but and NO Part is loaded 
  -NXFindCondition10_TitlesNoPart_MaxSEC "120"                                     #Doc: max duration to wait NX is idel (NO PartLoaded) NX -1 = wait always
  -NXFindCondition20_TitleLike           "NX 8.5*"                                 #Doc: Title to find NX Application 
  -NXFindCondition20_TitleLike_MaxSEC    "120"                                     #Doc: max duration to wait 

  -NXMacroTemplate_DPNE                  "#JobRoot_DP#\NxMacros\NXTemplate.macro"  #Doc: full path to NXTemplate.macro
  -NXMacroRuns_MaxSEC                    "300"
  
  -NXAfterAction_WaitTime_Msec           "500"                                     #Doc: time in msec JCT is waiting after each action is done
  -ShellMaxDurationSEC                   "-1"                                      #Doc: max duration to wait for a Reaction of NX -1 = wait always 

  [Optional]
  -ExecuteMacroViaUGRouter                                                         #Doc: macro will be executed via UGRouter.exe (default is False)
  -LoadObjectViaMacro                                                              #Doc: object (dataset) will be loaded via macro
  -CloseNxOnEnd                                                                    #Doc: NX will be closed at the end (default is False)
  -OpenNxOnStart                                                                   #Doc: NX will be opend at the beginning (default is False)

[Optinal if using NX with TC integration] 
  -u                                     "#TCUserName#"                            #Doc: Optional if using Managed Mode  
  -p                                     "#TCUserPassword#"                        #Doc: Optional if using Managed Mode  
  -g                                     "#TCGroup#"                               #Doc: Optional if using Managed Mode 

Examples:
#Doc: New: 2.1210;04.12.2014;J.Fes
#Doc: Update 2.1210;31.12.2014;J.Fes
-Action "NxDataProcessing_2013_09" -SubAction "NXMacroExecute" -NXFindCondition10_TitlesNoPart "NX 8.5 -;NX 8.5 - [No Part]" -NXFindCondition20_TitleLike "NX 8.5*"  -JobRoot_DP "V:\CustomersDataL\IEC\2015-01-05-ExampleData\NativeFile2_NXMacExe_00064_CustomerNameShort" -NXMacroTemplate_DPNE "#JobRoot_DP#\NXMacros\NXMacroNativTemplate.macro" -JobData1ToProcessDoPrint -JobData2ResultsDoPrint -JobParaDoPrint -verbose -pauseOnEnd



--------------------------------------------------------------------------------------------------------------------------------------------------------------------
#Doc: Aktion: ParaSolidExport #Bschreibung: [New: 2.1211;27.04.2015;S.Gueth]
With this Tool you can run an ParaSolidExport
      
CLA CommandLineArguments:
-------------------------

Parameters:
JobManagerCmdTools.exe 
  -Action                                "NxDataProcessing_2013_09" 
  -SubAction                             "ParaSolidExport"                         #Doc: triggers Subaction ParaSolidExport
  -JobRoot_DP                            "%JobRoot_DP%"                            #Doc: Root.Dir of Job 
  -ShellExecProg_DPNE                    "%JobRoot_DP%\BIN\ParasExpo.exe"          #Doc: full path of ParasExpo.exe
  -ShellExecArguments                    "'-Layer=1,2,11'"                         #Doc: parameters for ParasExpo.exe (-part -ExpoType -asInfoFile -paraSolidOutPutFile will automatically be set in cmd tools)
  -ShellExecMaxDuration_min              15                                        #Doc: max duration of ParasExpo.exe process in minutes, after that duration, process will be terminated
  -JobTemp_DP                            "%JobRoot_DP%\JobTemp"                    #Doc: current job temp dir
  -JobMgrDataOrg_Root_DP                 "#12-Data#\JobMgrData"                    #Doc: Path to the folder, where the output files will be stored (with JM logic)
  -CustomMoveToArchive_DP                "C:\custom\archive"                       #Doc: Optinal, Path to the folder, where the output files will be stored (without JM logic, JobMgrDataOrg_Root_DP will be ignored)
  -u                                     infodba                                   #Doc: username of TC User that should execute the command
  -p                                     infodbapw                                 #Doc: password of TC User that should execute the command
  -g                                     dba                                       #Doc: group of TC User that should execute the command
  -MoveToArchiveLogWrite_Custom01                                                  #Doc: when set, move to archive log will be written, via custom method 1


--------------------------------------------------------------------------------------------------------------------------------------------------------------------
#Doc: Aktion: StepExport #Bschreibung: [New: 2.1211;27.04.2015;S.Gueth]
With this Tool you can run an StepExport
      
CLA CommandLineArguments:
-------------------------

Parameters:
JobManagerCmdTools.exe 
  -Action									"NxDataProcessing_2013_09" 
  -SubAction								"StepExport"										#Doc: triggers Subaction StepExport
  -JobRoot_DP								"%JobRoot_DP%"										#Doc: Root.Dir of Job 
  -ShellExecProg_DPNE						"%UGII_BASE_DIR%\STEP214UG\step214ug.cmd"			#Doc: full path of step214ug.cmd
  -ShellExecArguments						"'-pim=yes d="%StepDef_DPNE%'"						#Doc: parameters for step214ug.cmd (irCliName, o=, l= will automatically be set in cmd tools)
  -ShellExecMaxDuration_min					15													#Doc: max duration of step214ug.cmd process in minutes, after that duration, process will be terminated
  -JobTemp_DP								"%JobRoot_DP%\JobTemp"								#Doc: current job temp dir
  -JobMgrDataOrg_Root_DP					"#12-Data#\JobMgrData"								#Doc: Path to the folder, where the output files will be stored (with JM logic)
  -CustomMoveToArchive_DP					"C:\custom\archive"								    #Doc: Optinal, Path to the folder, where the output files will be stored (without JM logic, JobMgrDataOrg_Root_DP will be ignored)
  -u										infodba											    #Doc: username of TC User that should execute the command
  -p										infodbapw											#Doc: password of TC User that should execute the command
  -g										dba												    #Doc: group of TC User that should execute the command
  -MoveToArchiveLogWrite_Custom01																#Doc: when set, move to archive log will be written, via custom method 1
  -StepExportViaUGExport					(optional)											#Doc: defines if the step export should be executed via ug_export (not via teamcenter)
  -ShellExecProg_DPNE_StepViaUGExport		c:\ugs\ugnx4\ugmanager\ug_export.exe (optional)     #Doc: program file name of executable program for UGExport, only use with parameter StepExportViaUGExport
  -ShellExecArguments_StepViaUGExport       -arg1 -arg2                                         #Doc: custom arguments for UGExport, only use with parameter StepExportViaUGExport


--------------------------------------------------------------------------------------------------------------------------------------------------------------------



--------------------------------------------------------------------------------------------------------------------------------------------------------------------
#Doc: Aktion: DxfDwgExport #Bschreibung: [New: 2.1211;30.04.2015;S.Gueth]
With this Tool you can run an DxfDwgExport
      
CLA CommandLineArguments:
-------------------------

Parameters:
JobManagerCmdTools.exe 
  -Action                                "NxDataProcessing_2013_09" 
  -SubAction                             "DxfDwgExport"							   #Doc: triggers Subaction DxfDwgExport
  -JobRoot_DP                            "%JobRoot_DP%"                            #Doc: Root.Dir of Job 
  -ShellExecProg_DPNE                    "%UGII_BASE_DIR%\dxfdwg\dxfdwg.exe"       #Doc: full path of dxfdwg.exe
  -ShellExecArguments                    "'d="%DxfDwgExportDef_DPNE%"'"            #Doc: parameters for dxfdwg.exe (i=, o=, l= will automatically be set in cmd tools)
  -ShellExecMaxDuration_min              15                                        #Doc: max duration of dxfdwg.exe process, after that duration, process will be terminated
  -DxfDwg_Extention                      dxf                                       #Doc: defines if dxf or dwg files should be exported
  -ShellExecProg_DPNE_UgTo2D             "%UGII_BASE_DIR%\UGTO2D\ugto2d.exe"       #Doc: full path of ugto2d.exe
  -ShellExecArguments_UgTo2D             "'-pim=yes'"                              #Doc: parameters for ugto2d.exe (the def file will automatically be set in cmd tools)
  -ShellExecMaxDuration_min_UgTo2D       15                                        #Doc: max duration of ugto2d.exe process, after that duration, process will be terminated
  -JobTemp_DP                            "%JobRoot_DP%\JobTemp"                    #Doc: current job temp dir
  -JobMgrDataOrg_Root_DP                 "#12-Data#\JobMgrData"                    #Doc: Path to the folder, where the output files will be stored (with JM logic)
  -CustomMoveToArchive_DP                "C:\custom\archive"                       #Doc: Optinal, Path to the folder, where the output files will be stored (without JM logic, JobMgrDataOrg_Root_DP will be ignored)
  -u                                     infodba                                   #Doc: username of TC User that should execute the command
  -p                                     infodbapw                                 #Doc: password of TC User that should execute the command
  -g                                     dba                                       #Doc: group of TC User that should execute the command
  -MoveToArchiveLogWrite_Custom01                                                  #Doc: when set, move to archive log will be written, via custom method 1



--------------------------------------------------------------------------------------------------------------------------------------------------------------------
#Doc: Aktion: Custom01Export #Bschreibung: [New: 2.1211;30.04.2015;S.Gueth]
With this Tool you can run the Custom01 Export (performs ParaSolid, Step and dxf export for an Item revision and generate a zip from the exported files and move that to the archive)
      
CLA CommandLineArguments:
-------------------------

Parameters:
JobManagerCmdTools.exe 
  -Action                                "NxDataProcessing_2013_09" 
  -SubAction                             "Custom01Export"						   #Doc: triggers Subaction Custom01Export
  -JobRoot_DP                            "%JobRoot_DP%"                            #Doc: Root.Dir of Job 
  -ShellExecProg_DPNE_ParaSolid          "%JobRoot_DP%\BIN\ParasExpo.exe"          #Doc: full path of ParasExpo.exe
  -ShellExecArguments_ParaSolid          "'-Layer=1,2,11'"                         #Doc: parameters for ParasExpo.exe (-part -ExpoType -asInfoFile -paraSolidOutPutFile will automatically be set in cmd tools)
  -ShellExecMaxDuration_min_ParaSolid    15                                        #Doc: max duration of ParasExpo.exe process in minutes, after that duration, process will be terminated 
  -ShellExecProg_DPNE_Step               "%UGII_BASE_DIR%\STEP214UG\step214ug.cmd" #Doc: full path of step214ug.cmd
  -ShellExecArguments_Step               "'-pim=yes d="%StepDef_DPNE%'"            #Doc: parameters for step214ug.cmd (irCliName, o=, l= will automatically be set in cmd tools)
  -ShellExecMaxDuration_min_Step         15                                        #Doc: max duration of step214ug.cmd process in minutes, after that duration, process will be terminated 
  -ShellExecProg_DPNE_DxfDwg             "%UGII_BASE_DIR%\dxfdwg\dxfdwg.exe"       #Doc: full path of dxfdwg.exe
  -ShellExecArguments_DxfDwg             "'d="%DxfDwgExportDef_DPNE%"'"            #Doc: parameters for dxfdwg.exe (i=, o=, l= will automatically be set in cmd tools)
  -ShellExecMaxDuration_min_DxfDwg       15                                        #Doc: max duration of dxfdwg.exe process, after that duration, process will be terminated
  -DxfDwg_Extention                      dxf                                       #Doc: defines if dxf or dwg files should be exported
  -ShellExecProg_DPNE_UgTo2D             "%UGII_BASE_DIR%\UGTO2D\ugto2d.exe"       #Doc: full path of ugto2d.exe
  -ShellExecArguments_UgTo2D             "'-pim=yes'"                              #Doc: parameters for ugto2d.exe (the def file will automatically be set in cmd tools)
  -ShellExecMaxDuration_min_UgTo2D       15                                        #Doc: max duration of ugto2d.exe process, after that duration, process will be terminated
  -JobMgrDataOrg_Root_DP                 "#12-Data#\JobMgrData"                    #Doc: Path to the folder, where the output files will be stored (will automatically create folders with the first 5 characters of an item)
  -u                                     infodba                                   #Doc: username of TC User that should execute the command
  -p                                     infodbapw                                 #Doc: password of TC User that should execute the command
  -g                                     dba                                       #Doc: group of TC User that should execute the command
  -MoveToArchiveLogWrite_Custom01                                                  #Doc: when set, move to archive log will be written, via custom method 1

  

--------------------------------------------------------------------------------------------------------------------------------------------------------------------
#Doc: Aktion: NXJournalExecute #Bschreibung: [New: 2.1221;14.12.2015;S.Gueth]
With this Tool you can run an NXJournal.vb for each NX.Dataset that is contained in the Job
      
CLA CommandLineArguments:
-------------------------

Parameters:
JobManagerCmdTools.exe 
  -Action                                "NxDataProcessing_2013_09" 
  -SubAction                             "NXJournalExecute"                        #Doc: triggers Subaction NXJournalExecute
  -JobRoot_DP                            "%JobRoot_DP%"                            #Doc: Root.Dir of Job 
  -u                                     "#TCUserName#"                            #Doc: TC user  
  -p                                     "#TCUserPassword#"                        #Doc: TC password 
  -g                                     "#TCGroup#"                               #Doc: TC group
  -ShellExecProg_DPNE                    "%UGII_NXBIN_DIR%\run_journal.exe"        #Doc: full path of run_journal.exe
  -ShellExecArguments                    "-arg1 -arg2"                             #Doc: Optional, custom arguments that will be passed into the journal
  -ShellExecMaxDuration_min              15                                        #Doc: max duration of run_journal.exe process, after that duration, process will be terminated, default is 10 minutes
  -NXJournalTemplate_DPNE                "c:\temp\journalTemplate.vb"              #Doc: full path to the journal template, hint: #ObjectCliName# will be replaced at runtime