Removing Multiple Made From Set Associations
A Made From Set association (Alternate Made From Link) exists between a revision of parent finished part and the main Made From Set object associated with it.
You can remove single or multiple Made From Set objects associated with single or multiple part objects by specifying the part OIDs and the Made From Set OIDs in the request body.
You must have Modify permissions to the Made From Set objects and to the part object for which you want to remove the Made From Set objects.
* 
When you remove an Alternate Made From Link, only the link between the specified revision of the finished part and the specified Made From Set object is removed.
The Alternate Made From Links between other revisions of the same finished part and the same Made From Set object are not removed.
The parent finished part is not iterated when the associated Made From Set object is removed.
You can also choose to remove the Made From Set objects in the context of Change (change task or change notice). You must first reserve the Change object for Edit. You must have Modify permissions to the Change object and Manufacturing History objects.
* 
When the Track “Made From” History Through Change Notice preference is set to Yes, you must specify the ChangeOid attribute and its value.
When the preference is set to Yes, Manufacturing History Objects are added in the UI in the Resulting Objects table of the Change object specified in the ChangeOid attribute value.
Example: Removing Made From Set Objects Associated with Multiple Finished Parts
This example shows you how to remove each Made From Set object associated with three different finished part objects. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/RemoveMadeFromSetAssociations
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"MadeFromSetAssociations": [
{
"Makes@odata.bind": "Parts('OR:wt.part.WTPart:202757')",
"MadeFromSet@odata.bind": "Parts('OR:wt.part.WTPart:202808')"
},
{
"Makes@odata.bind": "Parts('OR:wt.part.WTPart:202847')",
"MadeFromSet@odata.bind": "Parts('OR:wt.part.WTPart:202910')"
},
{
"Makes@odata.bind": "Parts('OR:wt.part.WTPart:202829')",
"MadeFromSet@odata.bind": "Parts('OR:wt.part.WTPart:202724')"
}
]
}
Example: Removing Made From Set Objects Associated with the Same Finished Part Object
This example shows you how to remove three Made From Set objects each associated with the same finished part object. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/RemoveMadeFromSetAssociations
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"MadeFromSetAssociations": [
{
"Makes@odata.bind": "Parts('OR:wt.part.WTPart:202657')",
"MadeFromSet@odata.bind": "Parts('OR:wt.part.WTPart:202812')"
},
{
"Makes@odata.bind": "Parts('OR:wt.part.WTPart:202657')",
"MadeFromSet@odata.bind": "Parts('OR:wt.part.WTPart:202815')"
},
{
"Makes@odata.bind": "Parts('OR:wt.part.WTPart:202657')",
"MadeFromSet@odata.bind": "Parts('OR:wt.part.WTPart:202818')"
}
]
}
Example: Removing Multiple Alternate Made From Links with “ChangeOid” Specified
This example shows you how to remove two Alternate Made From Links for the same finished part in the context of Change. In this example, the Track “Made From” History Through Change Notice preference is set to Yes. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/RemoveMadeFromSetAssociations
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"MadeFromSetAssociations": [
{
"Makes@odata.bind": "Parts('OR:wt.part.WTPart:192834')",
"MadeFromSet@odata.bind": "Parts('OR:wt.part.WTPart:192287')"
},
{
"Makes@odata.bind": "Parts('OR:wt.part.WTPart:192834')",
"MadeFromSet@odata.bind": "Parts('OR:wt.part.WTPart:192245')"
}
],
"ChangeOid": "VR:wt.change2.WTChangeOrder2:196476"
}
The request adds the parent finished part and the Manufacturing History objects in the Resulting Objects table of the Change object specified in ChangeOid.
Was this helpful?