其他 Windchill 功能 > 制造过程管理 > 自定义产品结构浏览器 (PSE) > 自定义 PSE 来处理模型化子类 > 解决方法 > 步骤 – 自定义 PSE 以处理模型化子类 > PSE 表格和面板
  
PSE 表格和面板
您无需将新的模型化属性添加到 LogicalAttributes.xml 文件中,但必须将它们添加到相应的 PSE 配置 XML 文件中。有关其他信息,请参阅针对子类型自定义 PSE
* 
指定仅针对子类对象定义的新模型化属性时,应将 "wt.part.WTPart" 上下文中定义的相应 "AttributeGroup" 或 "AttributeTable" 或 "Table" 复制到相应的子类上下文中。
只需列出新的模型化属性。现有属性将被继承。例如,将从 WTPart 继承名称和编号。
要从子类面板中移除继承的属性,请使用 "<Placement remove="true"/>",例如:
<AttributeDefinition id="contextName”>
<Placement remove="true"/>"
</AttributeDefinition>
为自定义对象添加元素组时,将所有自定义更改都放到一个单独的文件中而不编辑现有文件,这是一种不错的做法。对这些文件进行统一命名,例如 CustomExplorerForTablesAndPanels.xml。
使用之前的 "ext.cust.CustPart" 扩展 "wt.part.WTPart" 示例时,应将以下 AttributeGroup
<ExplorerElementGroup>
<LogicContext application="ptc.wnc.StructureExplorer"
dataType="wt.part.WTPart"/>
<AttributeGroup id="ptc.wnc.exp.ViewPropertiesPanel" displayMode="view">
<CellDefinition id="number">
<AttributeDefinition attributeId="number"/>
</CellDefinition>
<CellDefinition id="organizationIdentifier">
<AttributeDefinition attributeId="organizationIdentifier"/>
</CellDefinition>
<CellDefinition id="name">
<AttributeDefinition attributeId="name"/>
</CellDefinition>
<CellDefinition id="versionIterationView">
<AttributeDefinition attributeId="versionIterationView"/>
</CellDefinition>
...
</AttributeGroup>
</ElementGroup>
复制到 "ext.cust.CustPart" 的 LogicContext 下,如下所示:
<ExplorerElementGroup>
<LogicContext application="ptc.wnc.StructureExplorer"
dataType=" ext.cust.CustPart "/>
<AttributeGroup id="ptc.wnc.exp.ViewPropertiesPanel" displayMode="view">
<!-- name and number will inherit from WTPart -->
<!-- adding new modeled attributes here -->
<CellDefinition id="intMBA">
<AttributeDefinition attributeId="intMBA"/>
</CellDefinition>
...
</AttributeGroup>
</ElementGroup>