將可進行檔案同步處理的 Worker 與 Windchill Workgroup Manager for Autodesk Inventor 搭配使用
如果您使用 Autodesk Inventor 可進行檔案同步處理的 Worker,則適用這些指示。此組態會在發行 Creo View 可檢視項之前,使用 Windchill Workgroup Manager 同步處理 CAD 檔案中的 Windchill 屬性與屬性值。
以下是告知 Windchill Visualization Services 使用檔案同步處理以發行資料所需的組態變更的範例。此一般概念適用於所有可進行檔案同步處理 Worker。
|
|
只有 Creo View adapter for Creo Parametric 與 Creo View adapter for CATIA V5 支援也在相同主機針對檔案同步處理配置的多個別名 Worker (使用 dAPI -DA 引數)。
|
欲針對其他可進行檔案同步處理的 Worker 啟用該功能,請遵循以下步驟。請務必注意每個可進行檔案同步處理的 Worker 之指令字串中的差異。
1. 使用
custom.site.xconf 檔案將
useworkerdownload 變數附加至
wvs.properties 檔案中的
publish.cadconvert.<
worker_name> 變數。如需詳細資訊,請參閱
Windchill 組態內容。這會告訴發行者要使用 Worker 來進行檔案下載 (
useworkerdownload),於
Windchill 目錄中的
auth.properties 檔案尋找 Worker 需要的
使用者名稱及
密碼。
從 Windchill Shell 執行以下指令:
a. 欲顯示 publish.cadconvert.<worker_name> 變數的目前值:
java wt.util.jmx.WTPropEval publish.cadconvert.<worker_name>
b. 將 useworkerdownload 變數定義附加至 publish.cadconvert.<worker_name> 變數。使用顯示指令的結果資訊,在其後附加:
<Property name="useworkerdownload"value="$(wt.home)$(wvs.dir.sep)auth.properties"targetFile="codebase/WEB-INF/conf/wvs.properties"/>
附加新值時,請使用逗號 (,) 分隔字元。
針對 Autodesk Inventor:
<Property name = "publish.cadconvert.INVENTOR
value = "com.ptc.wvs.server.publish.CadConvertINVENTOR,useworkerdownload=$(wt.home)$(wvs.dir.sep)auth.properties"
overridable = "true"
targetfile = "<Windchill> codebase\WEB-INF\conf\wvs.properties"/>
其中 <Windchill> 是安裝 Windchill 的位置。
2. 在之前步驟編輯的 publish.cadconvert.<worker_name> 變數參考 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 檔案。