Creating an Engineering Material Part Reference Link
An engineering material part reference link exists between an existing engineering material object and a reference document.
You can create an engineering material part reference link by specifying the engineering material OID in the request URI and the reference document OID in the request body.
* 
When the Part to Document Association Logic preference is set to No in the Preference Management utility in Windchill, you can create an engineering material part reference link only for a document of type Reference Document.
When the Part to Document Association Logic preference is set to Yes, you can create an engineering material reference link for any of the document types.
Example: Creating an Engineering Material Part Reference Link
The following example shows you how to create an engineering material part reference link for the engineering material OID specified in the request URI.
Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/Sustainability/EngineeringMaterials('OR:wt.part.WTPart:546607')/References
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"[email protected]": "Documents('OR:wt.doc.WTDocument:538159')"
}
The request creates an engineering material part reference link and returns the details of the link in the response.
The specified reference document is added to the Reference Documents table in the Related Objects tab available for the specified engineering material in Windchill.
È stato utile?