Create CAM Operation
cam_create_operationAdds a machining operation to a specified CAM setup, using a strategy to set the toolpath type and optional tool/cutting parameters.
Instructions
Add a machining operation to a setup. Strategy determines the toolpath type.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"setup_name": "<setup_name>",
"strategy": "<strategy>"
},
"name": "cam_create_operation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Operation name | |
| coolant | No | flood | |
| stepdown | No | Axial depth of cut (cm) | |
| stepover | No | Radial stepover (cm) | |
| strategy | Yes | Machining strategy, in Fusion's own spelling. Measured against Operations.compatibleStrategies on 2706.1.17: of the fifteen names this schema carried, five were Fusion's (kept here) and ten were invented and refused as 'Unknown strategy'; the five 2D/3D names added here are the ones measured to expose a geometry parameter. | |
| body_name | No | Body whose faces carry the operation's geometry; required with face_indices. Only the five strategies with a measured geometry parameter take a selection, and face is not one of them. | |
| feed_rate | No | Feed rate (cm/min) | |
| tool_json | No | A complete tool object as JSON, taken from a Fusion tool library (one entry of its data array). Used verbatim instead of tool_diameter/tool_length/tool_flutes. It must be complete: a partial object crashed Fusion 2706.1.17. | |
| setup_name | Yes | Name of the parent setup | |
| tool_flutes | No | Flute count of the tool tool_diameter creates; defaults to 2. | |
| tool_length | No | Flute length (cm) of the tool tool_diameter creates; defaults to three diameters. | |
| tool_number | No | Number the post writes. On its own it selects a tool the document tool library already holds - the reply says from_library, and a number nothing holds is refused naming the numbers that would work - or saying the library is empty. Beside tool_diameter it numbers the tool that creates. A tool supplied as tool_json carries its own number in its post-process block, so passing tool_number beside tool_json is refused rather than dropped. | |
| face_indices | No | Faces to machine, by 0-based index in the body's own order (list_faces reports them, with each face's surface_type). Applied to the strategy's geometry parameter (contours/pockets/machiningBoundarySel). Refused for any strategy without one. | |
| spindle_speed | No | Spindle speed (RPM) | |
| tool_diameter | No | Diameter (cm) of the flat end mill this operation gets. The add-in builds a complete tool object, hands it to Fusion, and the operation can generate. Without a tool an operation cannot: Fusion answers 'Toolpath requires tool to be selected.' |