cam_create_setup
Creates a milling setup in Fusion with configurable stock offset and WCS origin, returning stock box and WCS coordinates in millimeters for CAM programming.
Instructions
Create a milling setup on the scratch document (opens the Manufacture workspace). Units mm.
stock_offset_mm: relative-box stock, a number (sides and top; bottom 0) or {"sides", "top", "bottom"}. wcs: stock box point: 'top-centre' (default), 'top-corner-1'..'top-corner-4' (1=-X-Y, 2=+X-Y, 3=-X+Y, 4=+X+Y), 'centre', 'bottom-centre', 'bottom-corner-N'; prefix 'model-' for the model box instead; or 'model-origin'. body: body name or index (default: all solid bodies). Returns the stock box in world mm and in WCS mm and the WCS origin in world mm. Refuses on documents not created by import_step unless allow_user_document=true, and while Fusion is mid-command.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cam_create_setup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wcs | No | top-centre | |
| body | No | ||
| name | No | ||
| timeout_s | No | ||
| stock_offset_mm | No | ||
| allow_user_document | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |