Integración con otras aplicaciones > Documentación de Windchill Workgroup Manager > CATIA V5 > Administrador > Administration and Configuration for CATIA V5 > Using a File Synchronization-capable Worker with Windchill Workgroup Manager > Configuring Multiple File Sync Workers
  
Configuring Multiple File Sync Workers
This section provides instructions on setting up multiple Windchill Workgroup Manager for CATIA V5 CAD workers on a single machine. The following variables are used in this procedure:
<TS_INST>
Theorem installation folder
<PVIEW_WORKING_DIR>
Theorem CADverter setup folder
<WGM_HOME>
Windchill Workgroup Manager installation folder
<CATIAV5>
CATIA V5 application installation folder
<APPDATA>
Windows application data folder
<RELEASE>
CATIA V5 release number being used
Configuring Multiple CATIA V5 Workers
1. Decide on a worker machine alias for each worker required on a single machine, such as: catiaworker_1, catiaworker_2, and catiaworker_3.
2. From the worker machine, use the catia5_pv_config utility to create several identical configurations, one for each required worker, with a relevant name, such as: catia5_setup1, catia5_setup2, and catia5_setup3.
* 
Ensure that the Enable WWGM file synchronization support checkbox is selected.
3. Edit each catia5worker.bat script and add the relevant -DA <alias> as the first argument after the <TS_INST>\bin\catia5<release>_pv.cmd in the worker monitor command line. For example:
<TS_INST>\i486_nt\obj\workermonitor" -UH -s "<TS_INST> \bin\catiaV5r23_pv.cmd" -DA catiaworker_1 -vt -r...
4. Edit each worker script and add the following commands. For example, for catiaworker_1:
set PVIEW_WORKING_DIR=D:\Theorem\cadworkers\catia5_setup1
set PTC_WF_CACHE=%PVIEW_WORKING_DIR%\.wgm
set PTC_WF_ROOT=%PVIEW_WORKING_DIR%\.wgm\wf_root
set PTC_WGM_STARTUP_DIR=%PVIEW_WORKING_DIR%\.wgm\uwgm_logs
set PTC_WLD_ROOT=%PVIEW_WORKING_DIR%\.wgm\wld_root
set VC_LOG_DIR=%PVIEW_WORKING_DIR%\.wgm\uwgm_logs
set PTC_WGM_ROOT=%PVIEW_WORKING_DIR%\.wgm\wgm_root
set PTC_WGM_XML_TEMP=%PVIEW_WORKING_DIR%\.wgm\XML
set TEMP=%PVIEW_WORKING_DIR%
* 
You will need to remove the existing line setting the PTC_WF_ROOT, PTC_WGM_STARTUP_DIR, and PTC_WLD_ROOT variables.
5. Configure the Windchill server so that each of the worker aliases is resolved to the relevant worker host name alias. Edit the %SystemRoot%\System32\drivers\etc\hosts file and adding an entry such as:
[worker-ip-addr] [hostname] [alias-name_1] [alias-name_2] [alias-name_3] [etc]
For example:
123.456.789.1 catiaworker catiaworker_1 catiaworker_2 catiaworker_3
6. Configure a worker definition for each worker using the Worker Agent Configuration Wizard, adding each aliased worker (using the alias name for the worker host name) as a separate worker, each with one instance.
Windchill Workgroup Manager Configuration for Multiple File Sync Enabled Workers
1. Install the Windchill Workgroup Manager client build in the chosen location. For example: C:\Program Files (x86)\PTC\wgm.
2. Create a batch file in each of the worker setup folders to run the different Windchill Workgroup Manager environments with the contents shown below:
a. For the first worker configuration, create batch file WWGM_Setup1.bat:
set PVIEW_WORKING_DIR=D:\Theorem\cadworkers\catia5_setup1
set PTC_WGM_APP_LOCK_NAME=catiaworker1
set PTC_WF_CACHE=%PVIEW_WORKING_DIR%\.wgm\wf_cache
set PTC_WF_ROOT=%PVIEW_WORKING_DIR%\.wgm\wf_root
set PTC_WGM_STARTUP_DIR=%PVIEW_WORKING_DIR%\.wgm\uwgm_logs
set PTC_WLD_ROOT=%PVIEW_WORKING_DIR%\.wgm\wld_root
set VC_LOG_DIR=%PVIEW_WORKING_DIR%\.wgm\uwgm_logs
set PTC_WGM_ROOT=%PVIEW_WORKING_DIR%\.wgm\wgm_root
set PTC_WGM_XML_TEMP=%PVIEW_WORKING_DIR%\.wgm\XML
“[WGM_HOME]\bin\uwgm_client.js”
b. For the second worker configuration, copy WWGM_Setup1.bat to the second worker setup folder and edit the first two lines for the new location accordingly. For example:
set PVIEW_WORKING_DIR=D:\Theorem\cadworkers\catia5_setup2
set PTC_WGM_APP_LOCK_NAME=catiaworker2
c. Repeat for each additional worker configuration.
3. Register CATIA V5 for each worker’s Windchill Workgroup Manager configuration. This creates unique PTC_WF_ROOT and PTC_WGM_ROOT content in each worker setup folder.
To register CATIA V5 for the first worker’s Windchill Workgroup Manager configuration:
a. Run the Windchill Workgroup Manager using the batch file WWGM_Setup1.bat
* 
For Windows 7 and Windows Vista, run as an administrator.
b. Select the desired CATIA V5 version and click Register.
* 
If registering manually, the default startup command must be used.
c. Click Close.
d. Register your server.
e. Close the Windchill Workgroup Manager client.
f. Update the startup user’s CATIA V5 environment file (the Windchill Workgroup Manager client application registration process for each new worker configuration resets this CATIA V5 environment file):
a. Edit the common Windchill Workgroup Manager for CATIA V5 environment file to use the PTC_WF_ROOT variable set in the catia5worker.bat
b. Open the Windchill Workgroup Manager for CATIA V5 environment file (the default location is %APPDATA%\ \DassaultSystemes\CATEnv\WGM_10.0_CATIA_V5_R<Release>.txt).
c. Replace all references to the PTC_WF_ROOT location (for example: D:\Theorem\cadworkers\catia5_setup1\.wgm\wf_root) with the environment variable %PTC_WF_ROOT%.
Repeat for each additional worker configuration.
Troubleshooting
If the worker cannot obtain a CATIA V5 license for a job, all subsequent jobs fail because of the same license issue. To fix this problem, you must first fix the license problem first. Then, access the WVS job monitor in Windchill. Search for all jobs that have failed due to the license issue and resubmit them.
To assure that log messages are properly localized and displayed in the WVS job monitor, be sure to set the "locale" of the Windchill server and the Theorem Worker client machine to the same value.
Related Topics