其他 Windchill 功能 > 服务信息管理 > 自定义 Windchill Service Information Manager 和 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.xmlService 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 PartsService 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>