其他 Windchill 功能 > 服務資訊管理 > Customizing Windchill Service Information Manager and Windchill Service Parts (自訂 Windchill Service Information Manager and Windchill Service Parts) > 自訂 Windchill Service Parts 概觀 > 自訂Service Product Structure Explorer
  
自訂Service Product Structure Explorer
您可以自訂 Windchill 總管,包括「Service Product Structure Explorer」。如需有關自訂總管的詳細資訊,請參閱「Windchill 說明中心」中的 Customizing the Product Structure Explorer (PSE) 及其相關主題。此部份包含自訂「Service Product Structure Explorer」的特定詳細資訊。
概觀
總管組態檔案位於以下目錄中:
codebase\config\logicrepository\xml\explorer
在該目錄中,\servicebom 目錄包含指定「Service Product Structure Explorer」之顯示及工作方式的 XML 檔案。特別是,此檔案會定義「Service Product Structure Explorer」與「製造產品結構總管」及「產品結構總管」有何不同。此 XML 擁有 ptc.sis.ProductStructureExplorer 的邏輯前後關聯,在每個 XML 檔案的開頭指定,如下所示:
<LogicContext application="ptc.sis.ProductStructureExplorer"/>
此邏輯前後關聯可用於確定要用於建構使用者介面之 XML 元素的階層。自訂 XML 的其他層級也可用於建構使用者介面。XML 的此層級位於 \explorer\customization 目錄中。依預設,\customization 包含用於定義「Service Product Structure Explorer」自訂的檔案 CustServiceBOMExplorerMain.xml。「Service Product Structure Explorer」的自訂 XML 檔案會指定 ptc.cust.sis.ProductStructureExplorer 的邏輯前後關聯。
自訂Service Product Structure Explorer
使用 CustServiceBOMExplorerMain.xml 來自訂「Service Product Structure Explorer」的方式,和 \servicebom 中的檔案不同於「Service Product Structure Explorer」與「製造產品結構總管」及「產品結構總管」的方法相似。您可以使用除了 CustServiceBOMExplorerMain.xml 以外的檔案,但是所有 XML 區段的應用程式 ID 都必須為 ptc.cust.sis.ProductStructureExplorer
使用下列步驟自訂「Service Product Structure Explorer」:
1. 在下列檔案之產品安裝目錄副本中的適當註解行下,新增新的或修改過的總管群組:
\codebase\config\logicrepository\xml\
explorer\customization\CustServiceBOMExplorerMain.xml
或者,將檔案從 \servicebom 複製到 \customization,並在 \customization 的檔案中新增或變更元素。請確保所有 XML 區段的應用程式 ID 都是 ptc.cust.sis.ProductStructureExplorer
2. 重新啟動方法伺服器來更新邏輯存放庫。
3. 啟動 Windchill Service Parts 與「Service Product Structure Explorer」來審核變更。
範例
隱藏選單項目:
<ExplorerElementGroup>
<LogicContext application="ptc.cust.sis.ProductStructureExplorer"/>

<!-- This markup will remove the Preferences dialog menu item -->
<!-- from the sPSE File menu -->
<ActionAccess id="ptc.pdm.pse.ExplorerTreeAA">
<MenuBar id="MenuBar">
<Menu id="FileMenu">
<MenuItem id="FileSISPreferencesMI">
<Placement remove="true"/>
</MenuItem>
</Menu>
</MenuBar>
</ActionAccess>
</ExplorerElementGroup>
修改表格:
<ExplorerElementGroup>
<LogicContext application="ptc.cust.sis.ProductStructureExplorer"
dataType="wt.part.WTPart" />
<!-- This markup will cause the "name" column in the dual tree -->
<!-- view upstream tree to be hidden by default. The column can -->
<!-- still be re-enabled by right-clicking on any column heading -->
<!-- from that tree, and selecting "Name." -->
<Table id="ptc.mpm.pse.DualModeMainTreeTable"
selectionMode="multi-non-contiguous"
displayMode="view">
<CellDefinition id="name" displayWhenNoPreferenceSet="false"/>
</Table>
</ExplorerElementGroup>