Use Case 13: Generate a Downstream Structure by Skipping a Part Based on the Range Attribute
You can generate a downstream structure by defining a range. There might be a scenario where you may not want to transfer parts whose attribute value falls within a certain range. You can use the skip attribute to skip such parts that have attribute values within a certain 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 attribute skip_range is created on WTPart. Use this attribute to skip a part.
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.
<AddToProperty name="com.ptc.windchill.associativity.reconciliation.addusage.wt.part.WTPart" value="skipAttribute.skip_range=a20>a90"/>
In the above property, a20>a90 describes the range. The value of the preference Delimiter to Define the Range is set to >. a20>a90 means that the range is from a20 through a90.
* 
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 the following:
If the value of the attribute 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.
If the Windchill system detects a part in the upstream with the attribute skip_range value set from a20 througha90, then the part is skipped and is not added in the downstream. However, the structure below the detected part is traversed.
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), Part C6 (Manufacturing), Part C7 (Manufacturing) are added as new parts under Part D1 (Manufacturing).
Subassembly C4 and Subassembly C5 are skipped and are not transferred to the downstream view because the value of the skip_range attribute, is between the specified range, that is a20>a90.
Was this helpful?