其他 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>