其他 Windchill 功能 > 服務資訊管理 > 組態指南 > 服務發佈設定 > 配置服務文件的發行
  
配置服務文件的發行
概觀
Windchill Visualization Services (WVS) 提供一個架構,可用來發佈文件、為視覺化建立表示以及產生束。此發行流程會使用由 Worker Agent 管理的 Worker。
WVS 架構支援從資訊結構、發行結構與零件清單發行。欲配置發行,您必須使用 WVS 屬性配置「WVS 發行者」。然後,您可以定義及載入發行規則來發行至特定輸出。
WVS 會根據指定的發行規則傳送請求至 Windchill Arbortext Publishing Engine。這些規則會指定建立輸出或後發佈物件、傳遞用於發佈的參數並指定輸出類型,例如 PDF 或 InService 束。
配置 WVS 發行者
您將需要設定 Windchill Arbortext Publishing Engine 的驗證,以便從 Windchill 下載輸入檔案,並隨後處理輸出檔案。處理驗證的方式有好幾種。您將需要使用文字編輯器,在 Windchill-path 根目錄 (亦稱為 %WT_HOME%) 中建立 auth.properties 檔案。然後,評估要在發佈操作期間使用的驗證方法:
使用受信任的主機驗證進行驗證,而不必將密碼傳入發佈請求。
設定將與發佈請求一起傳遞的使用者名稱與密碼進行驗證。
* 
如需有關針對 WVS 的受信任主機驗證的資訊,請參閱受信任主機驗證的 WVS 考量。如需有關針對 Windchill 的受信任主機驗證的資訊,請參閱在 Windchill 中配置替代驗證
若要使用受信任主機驗證將 WVS 發佈至 Windchill Arbortext Publishing Engine
1. 將驗證變數新增至 auth.properties 檔案,如下例所示:
auth=$user:
2. Arbortext PE 伺服器Property 新增至 Windchillsite.xconf 檔案:
<Property name="wt.auth.trustedHosts" overridable="true"
targetFile="codebase/wt.properties" value="server-IP-address"/>
3. 執行 xconfmanager -pF 以傳播內容。
4. Windchill shell 中,使用以下指令重新啟動 Windchill
windchill stop
windchill start
將使用者名稱和密碼驗證新增至 auth.properties 檔案:
1. 新增一個包括使用者名稱與選用密碼值的驗證變數。這是此檔案中的唯一項目。將會使用下列其中一種語法:
auth=使用者名稱
auth=使用者名稱:密碼
以有效值取代 usernamepassword
2. 請確保使用者有權讀取及下載儲存在可發佈之 Windchill 中的所有 Windchill Service Information Manager 結構。
此外,會以 auth.properties 檔案的位置配置 Windchill。尤其是 wvs.properties 包含 auth.properties 位置。
* 
wvs.propertieswvs.properties.xconf 檔案的位置位於 Windchill-path\codebase\WEB-INF\conf 目錄中。
1. wvs.properties 檔案中,一組 Windchill Service Information Manager 發行內容通常會將 auth.properties 的位置指定為:
$(wt.home)$(wvs.dir.sep)auth.properties
如果 auth.properties 的位置變更,請務必更新路徑。您必須使用 xconfmanager 公用程式來執行此變更,並需要指定完整的屬性陳述式,例如:
xconfmanager -s
"updated statement within quotes"
-t Windchill-path\wvs.properties -p
依預設,下列屬性會提供 auth.properties 的位置,且如果該檔案位置變更 (略過換行),則需要更新這些屬性:
publish.cadconvert.com.ptc.arbortext.windchill.partlist.PartList.SIS=
com.ptc.arbortext.windchill.publisher.CadConvertSIS,
useworkerdownload\=$(wt.home)$(wvs.dir.sep)auth.properties,
types\=PDF BUNDLE EPUB,defaulttype\=PDF
publish.cadconvert.wt.part.WTPart|com.ptc.sis.Base
|com.ptc.sis.BaseDiv|com.ptc.sis.IsRoot.SIS=
com.ptc.arbortext.windchill.publisher.CadConvertSIS,
useworkerdownload\=$(wt.home)$(wvs.dir.sep)auth.properties,
types\=BUNDLE ,defaulttype\=BUNDLE
publish.cadconvert.wt.part.WTPart|com.ptc.sis.Base
|com.ptc.sis.BaseDiv|com.ptc.sis.PsSection.SIS=
com.ptc.arbortext.windchill.publisher.CadConvertSIS,
useworkerdownload\=$(wt.home)$(wvs.dir.sep)auth.properties,
types\=PDF HTML BUNDLE EPUB,defaulttype\=PDF
publish.cadconvert.wt.part.WTPart|com.ptc.sis.Base
|com.ptc.sis.BaseDiv|com.ptc.sis.PsSection|com.ptc.sis.PsRoot.SIS=
com.ptc.arbortext.windchill.publisher.CadConvertSIS,
useworkerdownload\=$(wt.home)$(wvs.dir.sep)auth.properties,
types\=PDF HTML BUNDLE EPUB,defaulttype\=PDF
publish.cadconvert.wt.part.WTPart|com.ptc.sis.Base
|com.ptc.sis.Content|com.ptc.sis.ContentRef
|com.ptc.sis.PartsListRef.SIS=
com.ptc.arbortext.windchill.publisher.CadConvertSIS,
useworkerdownload\=$(wt.home)$(wvs.dir.sep)auth.properties,
types\=PDF HTML BUNDLE EPUB,defaulttype\=PDF
publish.cadconvert.wt.part.WTPart|com.ptc.sis.Base
|com.ptc.sis.Content|com.ptc.sis.ContentRef
|com.ptc.sis.TextualContentRef.SIS=
com.ptc.arbortext.windchill.publisher.CadConvertSIS,
useworkerdownload\=$(wt.home)$(wvs.dir.sep)auth.properties,
types\=PDF HTML BUNDLE EPUB,defaulttype\=PDF
2. 重新啟動 Windchill 伺服器。
* 
wvs.properties 檔案還包含稱為 publish.usesPublishRules=ARBORTEXT SIS 的設定。如果此屬性遭到刪除或 ARBORTEXT SIS 值遭到移除,WVS 將不會使用「發佈規則」。不建議執行此操作。
其他效能組態
如果您的網站管理 WVS 與 Arbortext PE 伺服器之間的大型交易,您可能需要新增內容來配置增加的逾時期間,以使發佈工作完成。
1. Property 新增至 Windchillsite.xconf 檔案:
<Property name=" publish.cadtimeout.component.SIS " overridable="true"
targetFile="codebase/wvs.properties" value="7200"/>
以秒為單位設定逾時值。例如,7200 表示 2 小時。
2. 執行 xconfmanager -pF 以傳播內容。
3. Windchill shell 中,使用以下指令重新啟動 Windchill
windchill stop
windchill start