Use Case 6: Copy Specific Plant Attribute Values per Plant
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).
• Part C1 (Design) has plants Berlin, Munich, and Dresden assigned to it.
• Part C2 (Design) is the child part of Part C1 (Design).
Part C2 (Design) has quantity as 2.
• Plant attribute Attribute1 with value as String1 is assigned to plant Berlin.
• Plant attribute Attribute3 with value as String3 is assigned to plant Berlin.
• Plant attribute Attribute2 with value as String2is assigned to plant Munich.
• Plant attribute Attribute4 with value as String4is assigned to plant Munich.
• Plant attribute Attribute5 with value as String5is assigned to plant Dresden.
• Plant attribute Attribute6 with value as String6is assigned to plant Dresden.
Requirement: Copy specific plant attribute value per plant. In this case, the following entities are copied:.
• Value of plant attribute Attribute1 of plant Berlin.
• Value of plant attribute Attribute5 of plant Dresden.
1. Access the associativity.properties.xconf file located in Windchill/codebase/com/ptc/windchill/mpml/xconfs.
2. Set the following configuration:
◦ <Property name="com.ptc.windchill.mpml.copyOver.CopyOverPlantAndDepartmentData" default="true"/>
| This property enables the copy of plants, plant attributes, departments and department attributes. If this property is set to false, the plants, plant attributes, departments and department attributes are not copied, even if you add other properties that are related to copying of specific plants, plant attributes, departments and department attributes. |
◦ Locate the following property:
<Property name="com.ptc.windchill.mpml.copyOver.mapsb.split.create.com.ptc.windchill.enterprise.data.EnterpriseData.com.ptc.windchill.enterprise.data.enterpriseData.PlantSpecificEnterpriseData" multivalued="," default=""/>. Add the following properties under this property:
<AddToProperty name="com.ptc.windchill.mpml.copyOver.mapsb.split.create.com.ptc.windchill.enterprise.data.EnterpriseData.com.ptc.windchill.enterprise.data.enterpriseData.PlantSpecificEnterpriseData" value="IdentityAttributes::view=Berlin@CopyAttributes::Attribute1"/>
| This property ensures that value of plant attribute Attribute1 of plant Berlin is copied. |
<AddToProperty name="com.ptc.windchill.mpml.copyOver.mapsb.split.create.com.ptc.windchill.enterprise.data.EnterpriseData.com.ptc.windchill.enterprise.data.enterpriseData.PlantSpecificEnterpriseData" value="IdentityAttributes::view=Dresden@CopyAttributes::Attribute5"/>
| This property ensures that value of plant attribute Attribute5 of plant Dresden is copied. |
3. Select the Part C1 (Design) in the upstream view and Downstream Parent Part (Manufacturing) in the downstream view.
4. In the upstream view, select > . The New Split Assemblies dialog box opens.
5. In the Assemble Under step, create two split assemblies, Split Assembly 1 and Split Assembly 2.
6. In the Set Parameters step, for Part C2 (Design), assign quantity as 1 in the Split Assembly 1 and Split Assembly 2 columns.
7. Click Finish. The following structure appears in the BOM Transformer:
An equivalent link of type split is created between Part C1 (Design) and Split Assembly 1(Manufacturing).
An equivalent link of type split is created between Part C1 (Design) and Split Assembly 2(Manufacturing).