その他の機能 > 製造プロセス管理 > 設計 BOM から製造 BOM への変換 > mBOM の作成 > 「下流構造を生成」操作の概要 > ユースケース: 下流構造を生成 > ユースケース 15: 部品属性 (同じタイプ、複数のコンフィギュレーション) に基づいて下流構造を生成
ユースケース 15: 部品属性 (同じタイプ、複数のコンフィギュレーション) に基づいて下流構造を生成
BOM トランスフォーマに以下の構造が存在するとします。
下流構造は存在しません。
上流構造内の各部品は WTPart の異なるサブタイプに属します。
PartSubType1PartSubType2、および PartSubType3WTPart のサブタイプです。
PartSubType3_1PartSubType3 のサブタイプです。
部品属性に基づいてタイプが同じで複数のコンフィギュレーションを持つ下流構造を生成するには、規則ファイルまたはプロパティファイルを使用して変換規則と再構築規則を指定できます。
規則ファイルを使用
テキストファイルで、次の規則を JSON フォーマットで追加します。
{
"transformRules": [
{
"sourceType": "wt.part.WTPart",
"sourceAttributes": ["AUA=yes"],
"targetType": "wt.part.WTPart",
"transformOption": "addSame"
},
{
"sourceType": "wt.part.WTPart",
"targetType": "wt.part.WTPart",
"transformOption": "newBranch"
},
{
"sourceType": "org.rnd.PartSubType3",
"doNotTransform": "true"
},
{
"sourceType": "org.rnd.PartSubType2",
"doNotTransform": "true"
}
]
}
プロパティファイルを使用
1. Windchill/codebase/com/ptc/core/foundation/associativity にあるファイル associativity.properties.xconf にアクセスします。
2. 以下の再構築規則を追加します。
<Property name="com.ptc.windchill.associativity.reconciliation.addusage.wt.part.WTPart.rule1" multivalued="," default=""/>
<AddToProperty name="com.ptc.windchill.associativity.reconciliation.addusage.wt.part.WTPart.rule1" value="attribute.AUA=yes"/>
<AddToProperty name="com.ptc.windchill.associativity.reconciliation.addusage.wt.part.WTPart.rule1" value="transformOption=addSame"/>
<AddToProperty name="com.ptc.windchill.associativity.reconciliation.addusage.wt.part.WTPart.rule1" value="targetType=wt.part.WTPart"/>
<Property name="com.ptc.windchill.associativity.reconciliation.addusage.wt.part.WTPart.rule2" multivalued="," default=""/>
<AddToProperty name="com.ptc.windchill.associativity.reconciliation.addusage.wt.part.WTPart.rule2" value="transformOption=newBranch"/>
<AddToProperty name="com.ptc.windchill.associativity.reconciliation.addusage.wt.part.WTPart.rule2" value="targetType=wt.part.WTPart"/>
<Property name="com.ptc.windchill.associativity.reconciliation.addusage.org.rnd.PartSubType2.rule1" multivalued="," default=""/>
<AddToProperty name="com.ptc.windchill.associativity.reconciliation.addusage.org.rnd.PartSubType2.rule1" value="doNotTransform=true"/>
<Property name="com.ptc.windchill.associativity.reconciliation.addusage.org.rnd.PartSubType3.rule1" multivalued="," default=""/>
<AddToProperty name="com.ptc.windchill.associativity.reconciliation.addusage.org.rnd.PartSubType3.rule1" value="doNotTransform=true"/>
「下流構造を生成」操作を実行すると、BOM トランスフォーマに次の構造が表示されます。
規則ファイルまたはプロパティファイルで指定されている基準に基づいて、下流構造が以下の方法で生成されます。
Part1 (Design)Part2 (Design)Part3 (Design)、および Part4 (Design) のタイプは WTPart であり、属性 AUAYes に設定されています。これらは各部品の下にそのまま追加されます。
タイプが WTPart である SubType1_Assembly (Design)PartType_Assembly (Design)、および Sub_Assembly1 (Design) の属性 AUAYes に設定されていません。したがって、これらは各部品の下に新規ブランチとして追加されます。
タイプが PartSubType3 である PartSubType3_Assm1(Design) とタイプが PartSubType2 である PartSubType2_Assembly1 (Design)PartSubType2_Assembly2 (Design) は変換されません。
PartSubType3_1_Assembly1 も、PartSubType3 のサブタイプである PartSubType3_1 タイプなので、変換されません。
これは役に立ちましたか?