Windchill のその他の機能 > 製造プロセス管理 > 製品エクスプローラ (PSE) のカスタマイズ > 新しいオブジェクトの作成中にステップの追加を許可
  
新しいオブジェクトの作成中にステップの追加を許可
PSE 作成ウィザードは、ExplorerForTablesAndPanels.xml で定義されます。"新規オブジェクトの作成" ウィザードは WizardList セグメントによって ptc.wnc.exp.CreateWizardList の id で定義され、"新規子部品を挿入" ウィザードは、WizardList セグメントによって ptc.wnc.exp.CreateChildWizardList の id で定義されます。
これらのウィザードは、ExplorerForTablesAndPanels.xml を編集するのではなく、別々の xml ファイルでカスタマイズします。現在、WizardList で許可されているステップは、AttributeGroup と AttributeTable です。
新しい AttributeGroup または AttributeTable を追加すると、カスタマイズファイルの WizardList が再定義され、Placement セグメントとともに新しいステップが加わります。たとえば、次のようになります。
<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 を複製します。2 行目は、新しい AttributeGroup インラインの追加を表します。これは元の WizardList 定義と同じように、別の場所で定義して、ここにインポートすることもできます。Placement セグメントは、新しい AttributeGroup が CreateChildPartTab2 の後に表示されることを示します。
AttributeGroup または AttributeTable を使用しない元の WizardList から削除することもできます。たとえば、次の xml は、ウィザードの最後のステップ (すべての再利用可能な属性を表示する AttributeTable) を除去します。
<WizardList id="ptc.wnc.exp.CreateChildWizardList">
<AttributeTable id="ptc.wnc.exp.CreatePartTab3">
<Placement remove="true"/>
</AttributeTable>
</WizartList>
ExplorerForTablesAndPanels.xml には、AttributeGroups または AttributeTables の作成方法を示す多くのよい例が含まれます。これらのセグメントのいずれかで、表示する各属性の CellDefinitions リストを定義します。
既存の AttributeGroups または AttributeTables を再定義し、Placement セグメントを使用して Celldefinitions を追加または削除します。たとえば、次のようになります。
<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 の両方にインポートされているので、両方のウィザードが修正される点に注意してください。