使用可進行檔案同步處理的 Worker
現在,下列 Worker 可進行檔案同步處理︰
• Creo Parametric
• Servigistics Arbortext
• Creo Elements/Direct Modeling
• Creo Elements/Direct Drafting
• Autodesk Inventor
• CATIA V5
• SolidWorks
• NX
|
• 目前只有 Creo View 與 Creo Parametric 的 CATIA V5 轉接器支援也在單一主機中針對檔案同步處理配置的多個相同類型之別名 Worker 的配置 (使用 dAPI -DA 引數)。
• Servigistics Arbortext 不支援在單一主機中對於不同 CAD 類型的多個 Worker 進行配置︰
如需詳細資訊,請針對相應的 CAD 應用程式,參閱 Windchill Workgroup Manager 管理員及使用者指南 (Windchill Workgroup Manager Administrator's and User's Guide) 中「搭配 Windchill Workgroup Manager 使用可執行檔案同步處理的 Worker」說明主題中的「配置多個檔案同步處理 Worker」子主題。
|
以下是告知 Windchill Visualization Services 使用檔案同步處理以發行資料所需的組態變更的範例。此一般概念適用於所有可進行檔案同步處理 Worker。
|
• 現成的 wvs.properties 檔案依預設可針對 Servigistics Arbortext 與 Creo Parametric Worker 啟用檔案同步處理的使用。遵循下列步驟來建立 auth.properties 檔案,以便能夠成功發佈。
• 從 Windchill 10.2 開始, PTC 已變更 wvs.properties 與 wvs.properties.xconf 檔案的位置。這些檔案已從 <Windchill>/codebase 目錄移至 <Windchill>/codebase/WEB-INF/conf 目錄。確保對您的程式碼進行任何必要的變更以反映此位置變更。
|
欲針對其他可進行檔案同步處理的 Worker 啟用該功能,請遵循以下步驟。請務必注意每個可進行檔案同步處理的 Worker 之指令字串中的差異。
1. 使用 xconfmanager 將 useworkerdownload 變數附加至 publish.cadconvert.wvs.properties 檔案中的 <編寫應用程式內部名稱> 變數之後。這會告訴發行者要使用 Worker 來進行檔案下載 (useworkerdownload),於 Windchill 目錄中的 auth.properties 檔案尋找 Worker 需要的使用者名稱及密碼。
從 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 檔案,但可將其放在任何位置。為了安全起見,此檔案不得放在 codebase 所在的目錄中。
b. 使用您選擇的文字編輯器建立 auth.properties 檔案。
c. 新增一個包含使用者名稱與密碼值的驗證變數。這是此檔案中的唯一項目。語法是:
auth=<username>:<password>
以有效值取代 <username> 與 <password>。指定的使用者名稱必須能取得要透過 Windchill Visualization Services 發行的 Windchill 物件之讀取權,並且具有從 Windchill 下載內容的授權。
d. 儲存變更並關閉 auth.properties 檔案。
3. 重新啟動 Windchill 伺服器。