Configuring Theorem Worker — File Synchronization (Optional)
File synchronization for the Theorem Worker is an optional step.
With file synchronization configured, CAD data is synchronized with the Windchill Workgroup Manager during the publishing process to reflect any pending changes from Windchill (such as PTC_REVISION orPTC_WM_LIFECYCLE_STATE). The resulting viewable reflects the implied updates to the file and is then stored as a representation in Windchill.
Before beginning the file synchronization configuration process, ensure you have gathered the necessary information for the following variables:
Variable
Description
(General)
You have downloaded and installed the Theorem adapter for CATIA V5 and have configured it on the client side.
Worker Location
Specify whether the worker is on the same machine as the Windchill server or a different Windows machine.
Worker Execution Command
Specify the command (with the path local to the host) which starts the worker executable as well as a timeout command.
Worker Daemon Port
If you use a remote worker on a different Windows machine, the default port number the worker daemon running on the host listens to is 601.
Common File System
Specify the common file system with a network file system, such as Microsoft Windows Networking, NFS, or UNC path. The Windchill machine path indicating that from the Windchill server the access to the common file system is accomplished with the FTP command (pview directory) should be the same path as worker machine’s path in the common file system.
Before you begin, the Theorem worker, server, and client must already be configured for file synchronization as described earlier in this section. If you want to run file synchronization as a service, you must complete those steps as well.
1. Log in to the Windchill server and stop the method server, Tomcat, and Apache.
2. Clear the Tomcat servlet cache and delete the contents of the C:\ptc\<build number>\tomcat\work\Catalina directory.
3. Create or place a file called auth.properties under C:\ptc\<build number>\Windchill.
* 
This file should contain the line auth=username:password without any additional spaces or lines. The user credentials are used for Windchill publishing and must have read access for all the data.
4. Back up C:\ptc\<build number>\Windchill\site.xconf. You must turn off file synchronization for test cases.
* 
To turn off file synchronization again later, restore the backed up site.xconf file and run xconfmanager-fp from the Windchill command line.
5. Add the lines below to site.xconf file before the ending </Configuration>:
<Property name="publish.cadconvert.UG" overridable= "true"
targetFile="codebase/wvs.properties"
value="com.ptc.wvs.server.publish.CadConvertUG,assytype=topdown,
repiba=additional_reps,useworkerdownload=$(wt.home)$(wvs.dir.sep)
auth.properties"/>
<Property name="publish.cadconvert.SOLIDWORKS" overridable="true"
targetFile="codebase/wvs.properties"
value="com.ptc.wvs.server.publish.CadConvertSOLIDWORKS,useworkerdownload=
$(wt.home)$(wvs.dir.sep)auth.properties"/>
<Property name="publish.cadconvert.INVENTOR" overridable="true"
targetFile="codebase/wvs.properties"
value="com.ptc.wvs.server.publish.CadConvertINVENTOR,useworkerdownload=
$(wt.home)$(wvs.dir.sep)auth.properties"/>
<Property name="publish.cadconvert.CATIA" overridable="true"
targetFile="codebase/wvs.properties"
value="com.ptc.wvs.server.publish.CadConvertCATIA,
useworkerdownload=$(wt.home)$(wvs.dir.sep)auth.properties"/>
<Property name="publish.cadconvert.CATIAV5" overridable="true"
targetFile="codebase/wvs.properties"
value="com.ptc.wvs.server.publish.CadConvertCATIAV5,useworkerdownload=
$(wt.home)$(wvs.dir.sep)auth.properties"/>
<Property name="publish.service.enabled" overridable="true"
targetFile="codebase/wvs.properties"
value="true"/>
<Property name="publish.usesPublishRules" overridable="true"
targetFile="codebase/wvs.properties"
value="PROE CADDS5 UG SOLIDWORKS CATIAV4 ARBORTEXT"/>
6. Save the site.xconf file and run xconfmanager-fp from the Windchill command line.
7. Fix spaces in the file names for file synchronization:
a. Edit the Windchill\codebase\agent.ini file.
b. Under the worker heading that corresponds to the CATIA V5 worker, enter noencoding=false.
8. Start Apache, Tomcat, and the method server.
9. Verify that the C:\Theorem\recipe\catia5_pv.pvr file contains the following lines. If not, add them below the final adapter* line.
adapter/WWGMDllName=catia5adapter_loader
adapter/WWGMCadHandleSupported=0
adapter/WWGMCadHandleOption=0
adapter/windchillMethod=3
10. Install the Windchill Workgroup Manager client on the worker machine and register CATIA V5 Rxx.
* 
Do not register a server.
11. If you are using a Windows system, run the following commands in the worker:
Start>Run>cmd
CD C:\Theorem\i486_nt\obj
WorkerDaemon.exe <port number>
12. Log on to the Windchill server as an administrator.
13. Navigate to Site > Utilities > Worker Agent Administration and perform the following steps:
a. Select the Start verbose workers checkbox.
b. Click Start worker (the green flag icon) next to the CATIA V5 worker name. The flag turns red and the status reads Available when it is running.
14. Make sure that no errors appear in the command prompt on the worker machine.
Isto foi útil?