Creating Multiple Tooling Objects
You can create single or multiple tooling objects using the CreateToolings action. The following example shows how to create multiple tools. Use the following POST request with the request body:
URI
POST /Windchill/servlet/odata/MfgProcMgmt/CreateToolings HTTP/1.1
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Toolings": [
{
"Category": {
"Value": "Tool"
},
"DimensionX": {},
"View": "Design",
"Name": "WRSTOOLTEST1",
"DimensionZ": {},
"Usage": {
"Value": "Rework"
},
"DimensionY": {},
"Precision": {},
"WorkingVolumeX": {},
"Description": "des",
"Version": "A",
"WorkingVolumeY": {},
"WorkingVolumeZ": {},
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:162355')",
"DefaultUnit": {
"Value": "ea",
"Display": "each"
},
"Source": {
"Value": "make",
"Display": "Make"
}
},
{
"Category": {
"Value": "Tool"
},
"DimensionX": {},
"View": "Design",
"Name": "WRSTOOLTEST2",
"DimensionZ": {},
"Usage": {
"Value": "Rework"
},
"DimensionY": {},
"Precision": {},
"WorkingVolumeX": {},
"Description": "des",
"Version": "A",
"WorkingVolumeY": {},
"WorkingVolumeZ": {},
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:162355')",
"DefaultUnit": {
"Value": "ea",
"Display": "each"
},
"Source": {
"Value": "make",
"Display": "Make"
}
}
]
}}
You can also assign single-valued or multi-valued Security Labels for single or multiple Tooling objects.
Example: Assigning Single-valued Security Label for Multiple Tooling Objects
This example shows you how to create two Tooling objects with single-valued security labels. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/CreateToolings
Request Header
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Toolings": [
{
"Name": "Tool 1.3.1",
"DefaultUnit": {
"Value": "ea"
},
"Category": {
"Value": "Tool"
},
"Source": {
"Value": "make"
},
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:113009')",
"EXPORTCONTROL": "CUSTOM"
},
{
"Name": "Tool 1.3.2",
"DefaultUnit": {
"Value": "ea"
},
"Category": {
"Value": "Tool"
},
"Source": {
"Value": "make"
},
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:113009')",
"EXPORTCONTROL": "LNC"
}
]
}
Example: Assigning Multi-valued Security Label for Multiple Tooling Objects
This example shows you how to create two Tooling objects with multi-valued security labels. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/CreateToolings
Request Header
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Toolings": [
{
"Name": "Tool 1.4.1",
"DefaultUnit": {
"Value": "ea"
},
"Category": {
"Value": "Tool"
},
"Source": {
"Value": "make"
},
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:113009')",
"EXPORTCONTROL": "LNC,CUSTOM"
},
{
"Name": "Tool 1.4.2",
"DefaultUnit": {
"Value": "ea"
},
"Category": {
"Value": "Tool"
},
"Source": {
"Value": "make"
},
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:113009')",
"EXPORTCONTROL": "LNC,CUSTOM"
}
]
}
Was this helpful?