Setup

/v3/nc/setup/{id}

Defined in step.js

Get Setup Workplan ID

GET /v3/nc/setup/{id}

Getting the setup endpoint for a given executable id will return the numeric ID of the enclosing workplan with setup that this executable is in. This is the same value held by the setupID field of the executable object.

For example, given some workplan structure as below:

{
  "id":320827,
  "name":"HARDMOLDY",
  "setupID":320827,
  "type":"workplan-setup",
  "children":[
    {"id":319589,
     "name":"Profiling",
     "setupID":320827,
     "type":"selective",
     "children":[
       {
	 "id":320865,
	 "name":"Iscar",
	 "setupID":320827,
	 "type":"workplan",
	 "children":[
	   {"id":316657,
	    "name":"2D High Speed (2D Dynamic Core mill)",
	    "setupID":320827,
	    "type":"workingstep",
	   },
	   {
	     "id":316671,
	     "name":"Contour (2D)",
	     "setupID":320827,
	     "type":"workingstep",
	   }]
       }]
    }]
}

All calls with these elements return the ID of the enclosing setup workplan (320827).

GET /v3/nc/setup/320827
==> returns 320827

GET /v3/nc/setup/319589
==> returns 320827

GET /v3/nc/setup/316671
==> returns 320827