Use Case 11: Generate a Downstream Structure for Entities That Have Same Value
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 the parts in the structure have the part type as wt.part.WTPart.
To generate the downstream structure for entities that have same value, you can specify the transformation and restructuring rules using rules file or properties file.
Using Rules File
{
"transformRules": [
{
"sourceType": "wt.part.WTPart",
"newAttributeMappings": [
[
"source.part.AttributeNum1",
"target.part.AttributeNum1"
],
[
"source.part.AttributeNum2",
"target.part.AttributeNum2"
]
],
"targetType": "wt.part.WTPart",
"transformOption": "newBranch"
}
]
}
Using Properties File
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"/>
If there is need to match same value, provide attribute name separated by colon.
<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"/>.
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 any part with a value for the part attribute AttributeNum1 matches with the downstream target part with the same value for AttributeNum1, then the upstream part will be added as a new branch under the target matched downstream part.
If any part with a value for the part attribute AttributeNum2 matches with the downstream target part with the same value for AttributeNum2, then the upstream part will be added as a new branch under the target matched downstream part.
The following structure appears in the BOM Transformer:
Based on the specified criteria, Part C1 (Manufacturing) and Part C2 (Manufacturing) are added as new parts under Part T1 (Manufacturing) and Part T2 (Manufacturing), respectively.
Was this helpful?