其他 Windchill 功能 > 製造流程管理 > 自訂產品結構總管 (PSE) > 新建物件時允許其他步驟
  
新建物件時允許其他步驟
PSE 建立精靈是在 ExplorerForTablesAndPanels.xml 中定義的。「建立新物件」精靈由 ID 為 ptc.wnc.exp.CreateWizardList 的 WizardList 區段定義,而「插入新子項」精靈則由 ID 為 ptc.wnc.exp.CreateChildWizardList 的 WizardList 定義。
建議您在單獨的 xml 檔案中自訂這些精靈,而不採用編輯 ExplorerForTablesAndPanels.xml 的方式。WizardList 內目前允許的步驟是 AttributeGroup 和 AttributeTable。
欲新增新的 AttributeGroup 或 AttributeTable,請重新定義自訂檔案中的 WizardList,並將您的新步驟連同「放置」區段一併納入。例如:
<WizardList id="ptc.wnc.exp.CreateChildWizardList">
<AttributeGroup id="ptc.custom.exp.CustomCreatePartTab2A">
<Placement insertKey="after"
insertId="ptc.wnc.exp.CreateChildPartTab2"/>
<CellDefinition id="endItem">
<AttributeDefinition attributeId="endItem"/>
</CellDefinition>
</AttributeGroup>
<WizardList>
第一行複製欲修改的 WizardList 的 ID。第二行顯示新增的新文字間 AttributeGroup,也可在另一個位置加以定義,然後於此處匯入,與原始的 WizardList 定義方式類似。Placement 區段指示您的新 AttributeGroup 將會顯示在 CreateChildPartTab2 之後。
您也可以從不想使用的原始 WizardList 中移除 AttributeGroup 或 AttributeTable。例如,下列 xml 會移除精靈 (顯示所有可重新使用屬性的 AttributeTable) 的最後一個步驟:
<WizardList id="ptc.wnc.exp.CreateChildWizardList">
<AttributeTable id="ptc.wnc.exp.CreatePartTab3">
<Placement remove="true"/>
</AttributeTable>
</WizartList>
ExplorerForTablesAndPanels.xml 包含許多有關如何建立 AttributeGroup 或 AttributeTable 的良好範例。在這些區段中的任一區段內,定義您想要顯示的每個屬性的 CellDefinition 清單。
您也可以使用 Placement 區段重新定義現有的 AttributeGroup 或 AttributeTable,並新增或移除 Celldefinition。例如:
<AttributeGroup id="ptc.wnc.exp.CreatePartTab2">
<CellDefinition id="partType">
<AttributeDefinition attributeId="partType"/>
<Placement insertKey="before" insertId="endItem"/>
</CellDefinition>
<CellDefinition id="genericType">
<AttributeDefinition attributeId=" genericType"/>
<Placement remove="true"/>
</CellDefinition>
</AttributeGroup>
此範例會採用針對 CreatePartTab2 步驟定義的現有 AttributeGroup,然後在 endItem 之前新增 partType 屬性,接著再移除 genericType 屬性。請注意,CreatePartTab2 會被匯入到 CreateWizardList 和 CreateChildWizardList,以便您修改這兩個精靈。