與其他應用程式整合 > Windchill Workgroup Manager 文件集 > SolidWorks > 管理與組態 > 使用 SolidWorks 配置企業實作 > 將可進行檔案同步處理的 Worker 與 Windchill Workgroup Manager 搭配使用
  
將可進行檔案同步處理的 Worker 與 Windchill Workgroup Manager 搭配使用
如果您使用 SolidWorks 可進行檔案同步處理的 Worker,則適用這些指示。此組態會在發行 Creo View 可檢視項之前,使用 Windchill Workgroup Manager 同步處理 CAD 檔案中的 Windchill 屬性與屬性值。
* 
只有在啟用檔案同步處理之 CAD Worker 的前後關聯中的 SolidWorks 支援 Windows 伺服器平台。如需有關所支援 CAD 應用程式的詳細資訊,請參閱 Windchill CAD 整合一覽表。
當您在 Windows Server 上執行 Windchill Workgroup Manager for SolidWorks 作為啟用檔案同步處理的 CAD Worker,SolidWorks 資源監視器會中斷。
這是已知的原生 SolidWorks 問題,因為 Windows Server 平台並不正式支援 SolidWorks
儘管有此問題,發佈工作仍成功完成。
以下是告知 Windchill Visualization Services 使用檔案同步處理以發行資料所需的組態變更的範例。此一般概念適用於所有可進行檔案同步處理 Worker。
* 
只有 Creo View adapter for Creo ParametricCreo View adapter for CATIA V5 支援也在相同主機針對檔案同步處理配置的多個別名 Worker (使用 dAPI -DA 引數)。
欲針對其他可進行檔案同步處理的 Worker 啟用該功能,請遵循以下步驟。請務必注意每個可進行檔案同步處理的 Worker 之指令字串中的差異。
1. 使用 xconfmanager 將 useworkerdownload 變數附加至 publish.cadconvert.<worker_name> 變數,此變數數位於 wvs.properties 檔案中。這會告訴發行者要使用 Worker 來進行檔案下載 (useworkerdownload),於 Windchill 目錄中的 auth.properties 檔案尋找 Worker 需要的使用者名稱及密碼。
從 Windchill Shell 執行以下指令:
a. 欲顯示 publish.cadconvert<worker_name> 變數的目前值:
xconfmanager -d publish.cadconvert.<worker_name>
b. 將 useworkerdownload 變數定義附加至 publish.cadconvert<worker_name> 變數。使用顯示指令的結果資訊,在其後附加:
useworkerdownload=$(wt.home)$(wvs.dir.sep)auth.properties
附加新值時,請使用逗號 (,) 分隔字元。
針對 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 的位置。
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 檔案。
3. 重新啟動 Windchill 伺服器。