Configuring Theorem Worker — Run as a Service (Optional) (CATIA V5)
Optionally, you can configure the Theorem worker to run automatically as a service.
When you run the Theorem worker as a service, you should be aware of the following:
When publishing CATDrawings that include raster views, it is more likely for errors to occur that prevent the representation from being generated. You can prevent raster views in CATDrawings from being regenerated when the Theorem worker publishes the CATDrawing. To do this, set the lock.raster.drawing.views.on.publish preference to Yes. When this preference is set to yes, the existing raster view is retained, and the system does not attempt to generate a new one. For more information, see Frequently Used Preferences: wgmclient.ini File.
If any errors occur, the error messages are recorded in a log. To view these messages, you must check the log. You can find the log in the Theorem worker installation directory.
Before you begin, the Theorem worker and server must already be configured as described earlier in this section.
1. On the client machine where the Theorem worker is installed, open a command prompt.
2. Change the directory to <Theorem installation location>\i486\obj, and then enter the following:
WorkerDaemon.exe -install
3. Access the Windows Services window (services.msc) and confirm that GS Worker Daemon is listed with a startup type of Automatic. If it is not listed, confirm that the Theorem worker has been configured.
4. View the properties of the GS Worker Daemon service. On the Log On tab, select This account. Enter the user name and password for the Windows user account that installed the Windchill Workgroup Manager and Theorem worker software.
5. From a command line, enter set. This command shows all environment variables. Make a note of the HOMEDRIVE and HOMEPATH settings.
6. From the catia5_setup directory in the Theorem installation location, open the catia5worker.bat file.
7. Set the HOMEDRIVE and HOMEPATH environment variables to match the settings that you noted.
For example:
set HOMEDRIVE=C:
set HOMEPATH=\users\ptcuser
8. Reboot the client machine, but do not log in. The Theorem worker now runs automatically as a service.
* 
You can log on to the worker if necessary. However, do not attempt to run the WorkerDaemon.exe manually while the service is also running.
9. Optionally, configure publishing to provide a file format selection menu when an object is published manually. To do this, change the Windchill Visualization Services Publish Rules default to CATIAV5, and create a visualization configuration to load the Publish Rules XML file. For details, see “Using Publish Rules” and “Creating Publish Rules” in the Windchill Visualization Services Administrator’s Guide.
Isto foi útil?