其他 Windchill 功能 > 制造过程管理 > 自定义产品结构浏览器 (PSE) > 自定义 PSE 结构查询 > 解决方法 > 步骤
  
步骤
编辑文件 ExplorerSearchableTypes.xml,在最后一行 </LogicRepository> 之前插入以下各行:
<!-- New Query definition for subtype myPart -->
<ExplorerElementGroup>
<LogicContext application="ptc.wnc.StructureExplorer"
dataType="com.aprilia.www.myPart"/>
<AttributeGroup id="ptc.wnc.exp.QuerySearchableAttrs" displayMode="view">
<!-- Remove the following that would otherwise be inherited from WTPart
Definition -->
<CellDefinition id="endItem">
<Placement remove="true"/>
</CellDefinition>
<CellDefinition id="genericType”>
<Placement remove="true"/>
</CellDefinition>
<CellDefinition id="referenceDesignator">
<Placement remove="true"/>
</CellDefinition>
<!-- Add the specific attributes of myPart -->
<CellDefinition id="myCost">
<AttributeDefinition attributeId="com.aprilia.www.myCost"/>
</CellDefinition>
<CellDefinition id="myDescription">
<AttributeDefinition attributeId="com.aprilia.www.myDescription"/>
</CellDefinition>
</AttributeGroup>
</ExplorerElementGroup>
重新启动方法服务器后,将会导致 "myPart" 显示在“类型”下拉列表中,同时移除“特性”条目“成品”、“类属”和“位号”,并添加 "myCost" 和 "myDescription",如“预期结果”部分中所示。
或者,如果要通过 XML 自定义对 PSE UI 的其他方面进行更改,可以将这些附加的行添加至保留所有 "myPart" 自定义的 XML 文件。