使用案例 11:針對具有相同值的實體產生下游結構
假設 BOM 轉換器中存在以下結構:
Upstream Parent Part (Design)Downstream Parent Part (Manufacturing) 之間存在對等連結。
結構中所有零件的零件類型均為 wt.part.WTPart
1. 存取位於 Windchill/codebase/com/ptc/core/foundation/associativity 中的 associativity.properties.xconf 檔案。
2. 新增下列重新建構規則:
<Property name="com.ptc.windchill.associativity.reconciliation.addusage.wt.part.WTPart" multivalued="," default=""/>
<AddToProperty name="com.ptc.windchill.associativity.reconciliation.addusage.wt.part.WTPart" value="transformoption=newBranch"/>
<AddToProperty name="com.ptc.windchill.associativity.reconciliation.addusage.wt.part.WTPart" value="targetType=wt.part.WTPart"/>
如果需要與相同值相符,請提供以冒號分隔的屬性名稱。
<AddToProperty name="com.ptc.windchill.associativity.reconciliation.addusage.wt.part.WTPart" value="attributeMapping.rule1=AttributeNum1:AttributeNum1"/>
<AddToProperty name="com.ptc.windchill.associativity.reconciliation.addusage.wt.part.WTPart" value="attributeMapping.rule2=AttributeNum2:AttributeNum2"/>
* 
針對上游中的所選零件啟動 動作後,Windchill 系統會遍歷所選零件下方的結構。此組態可確保:
如果具有 AttributeNum1 值的任何零件與具有相同 AttributeNum1 值的下游目標零件相符,則會將上游零件新增為目標相符下游零件下的新分支。
如果具有 AttributeNum2 值的任何零件與具有相同 AttributeNum2 值的下游目標零件相符,則會將上游零件新增為目標相符下游零件下的新分支。
3. 選取 Upstream Parent Part (Design),然後按一下中間窗格工具列中的
4. 下列結構會顯示在 BOM 轉換器中:
* 
根據在內容中指定的條件,Part C1 (Manufacturing)Part C2 (Manufacturing) 分別新增為 Part T1 (Manufacturing)Part T2 (Manufacturing) 下的新零件。
這是否有幫助?