专业化管理 > 支持可视化和发布 > WVS 发布器 > 文件同步 > 使用具有文件同步功能的工作器
  
使用具有文件同步功能的工作器
目前,以下工作器具有文件同步功能:
Creo Parametric
Servigistics Arbortext
Creo Elements/Direct Modeling
Creo Elements/Direct Drafting
Autodesk Inventor
CATIA V5
SolidWorks
NX
* 
当前仅 Creo View Adapters for Creo ParametricCATIA V5 支持对在单个主机上进行过文件同步配置的相同类型的多个别名化工作器 (使用 dAPI-DA 自变量) 进行配置。
Servigistics Arbortext 不支持在单个主机上配置不同 CAD 类型的多个工作器:
有关详细信息,请参阅关于各个 CAD 应用程序的《Windchill Workgroup Manager 管理员和用户指南》中“将具有文件同步功能的工作器与 Windchill Workgroup Manager 配合使用”帮助主题下的“配置多个文件同步工作器”子主题。
以下是一个通知 Windchill Visualization Services 使用文件同步发布数据所需配置更改的示例。此常规的概念适用于所有具有文件同步功能的工作器。
* 
默认情况下,出厂设置文件 wvs.properties 会启用 Servigistics ArbortextCreo Parametric 工作器的文件同步。按照以下步骤创建 auth.properties 文件以使发布成功。
从 Windchill 10.2 开始,PTC 更改了 wvs.propertieswvs.properties.xconf 文件的位置。这些文件已从 <Windchill>/codebase 目录移至 <Windchill>/codebase/WEB-INF/conf 目录。请确保对代码作出所有必要的更改,以反映此位置的更改。
要启用其他具有文件同步功能的工作器的功能,请按照以下步骤操作。请务必注意每个具有文件同步功能的工作器中命令字符串的差异。
1. 使用 xconfmanager 将 useworkerdownload 变量附加到 publish.cadconvert 文件中的 .<创作应用程序内部名称wvs.properties> 变量。这将通知发布器使用工作器进行文件下载 (useworkerdownload),可在 Windchill 目录下的 auth.properties 文件中找到为工作器指定的用户名和密码。
在 Windchill shell 中,执行下列命令:
a. 要显示 publish.cadconvert<创作应用程序内部名称> 变量的当前值:
xconfmanager -d publish.cadconvert.<创作应用程序内部名称>
b. 将变量定义附加到 publish.cadconvert<创作应用程序内部名称> 变量。使用显示命令的信息结果,并附加如下内容:
useworkerdownload=$(wt.home)$(wvs.dir.sep)auth.properties
附加新值时,请使用逗号 (,) 分隔符。
对于 Creo Parametric
xconfmanager -s
publish.cadconvert.PROE=com.ptc.wvs.server.publish.CadConvertPROE,
useworkerdownload=$(wt.home)$(wvs.dir.sep)auth.properties
-t <Windchill>\codebase\wvs.properties -p
其中,<Windchill>Windchill 的安装位置。
对于 Autodesk Inventor
xconfmanager -s
publish.cadconvert.INVENTOR=com.ptc.wvs.server.publish.CadConvert
INVENTOR,useworkerdownload=$(wt.home)$(wvs.dir.sep)auth.properties
-t <Windchill>\codebase\wvs.properties -p
其中,<Windchill>Windchill 的安装位置。
对于 SolidWorks
xconfmanager -s
publish.cadconvert.SOLIDWORKS=com.ptc.wvs.server.publish.Cad
ConvertSOLIDWORKS,useworkerdownload=$(wt.home)$(wvs.dir.sep)auth.
properties -t <Windchill>\codebase\wvs.properties -p
其中,<Windchill>Windchill 的安装位置。
对于 NX
xconfmanager -s
publish.cadconvert.UG=com.ptc.wvs.server.publish.CadConvertUG,
useworkerdownload=$(wt.home)$(wvs.dir.sep)auth.properties,assytype=
topdown,repiba=additional_reps -t <Windchill>\
codebase\wvs.properties -p
其中,<Windchill>Windchill 的安装位置。
对于 CATIA V5
xconfmanager -s
publish.cadconvert.CATIAV5=com.ptc.wvs.server.publish.CadConvert
CATIAV5,useworkerdownload=$(wt.home)$(wvs.dir.sep)auth.properties
-t <Windchill>\codebase\wvs.properties -p
其中,<Windchill>Windchill 的安装位置。
对于 Creo Elements/Direct Drafting
xconfmanager -s
publish.cadconvert.COCRDRAFT=com.ptc.wvs.server.publish.CadConvert
COCRDRAFT,useworkerdownload=$(wt.home)$(wvs.dir.sep)auth.properties
-t <Windchill>\codebase\wvs.properties -p
对于 Creo Elements/Direct Modeling
xconfmanager -s
publish.cadconvert.COCRMODEL=com.ptc.wvs.server.publish.CadConvert
COCRMODEL,useworkerdownload=$(wt.home)$(wvs.dir.sep)auth.properties
-t <Windchill>\codebase\wvs.properties -p
其中,<Windchill>Windchill 的安装位置。
对于 Servigistics Arbortext
xconfmanager -s
publish.cadconvert.ARBORTEXT=com.ptc.wvs.server.publish.CadConvert
ARBORTEXT,useworkerdownload=$(wt.home)$(wvs.dir.sep)auth.properties,
types=PDF HTML WEB POSTSCRIPT HTMLHELP SGML XML RTF DMP 3D,
defaulttype=PDF -t <Windchill>\codebase\wvs.
properties -p
其中,<Windchill>Windchill 的安装位置。
2. 在上一步中编辑的 publish.cadconvert.<创作应用程序内部名称> 变量会参考 auth.properties 文件。该文件当前不存在,必须加以创建。完成以下步骤:
a. 在上面的示例中,WVS 在 Windchill 目录中查找 auth.properties 文件,但可将该文件放在任意位置。出于安全方面的原因,不得将该文件置于代码库目录中。
b. 使用所选的文本编辑器创建 auth.properties 文件。
c. 添加一个包含用户名和密码值的验证变量。这是本文件中的唯一条目。语法为:
使用有效值
auth=<username>:<password>
替换 <username> 和 <password>。指定的用户名必须对通过 Windchill Visualization Services 发布的 Windchill 对象具有读取访问权限,且该用户名必须具有从 Windchill 下载内容的授权。
d. 保存更改并关闭 auth.properties 文件。
3. 重新启动 Windchill 服务器。