Use Case 12: Generate a Downstream Structure by Defining a Range
You can generate a downstream structure by defining a range. You can create an attribute and use it to define the range.
Consider that the following structure is present in the BOM Transformer:
An equivalent link exists between the Upstream Parent Part (Design) and Downstream Parent Part (Manufacturing).
All parts in the structure have the part type as wt.part.WTPart.
The value of the preference Delimiter to Define the Range is set to >. This is the default value.
The attribute GDS_Match is created on WTPart. Use this attribute to define the range.
The value of the attribute source for Part D1 (Manufacturing) is set to buy.
1. Access the associativity.properties.xconf file located in Windchill/codebase/com/ptc/core/foundation/associativity.
2. Add the following restructuring rules:
<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=GDS_Match:1>9:source:buy"/>
In the above property, 1>9 describes the range. The value of the preference Delimiter to Define the Range is set to >. 1>9 means that the range is from 1 through 9. In this case, the system considers the following values for comparison: 1, 2, 3, 4, 5, 6, 7, 8, and 9.
* 
After you initiate the action on the selected part in the upstream, the Windchill system traverses the structure below the selected part. This configuration ensures that if the value of the GDS_Match attribute for an upstream part is from 1 through 9, then the upstream part is added as a new branch under the target matched downstream part.
3. Select the Upstream Parent Part (Design) and click in the middle pane toolbar.
4. The following structure appears in the BOM Transformer:
* 
Based on the criteria specified in the properties, Part C1 (Manufacturing), Part C2 (Manufacturing), and Part C5 (Manufacturing) are added as new parts under Part D1 (Manufacturing).
Part C3 and Part C4 are not transferred to the downstream view because the value of the GDS_Match attribute is not within the specified range in the properties.
Was this helpful?