create_facing
Creates or regenerates a facing toolpath over a chained boundary such as a part outline, enabling flat surface machining with a specified tool, depth, and stepover.
Instructions
Create and regenerate a facing toolpath over the chained boundary (usually the part outline).
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": {
"tool_number": "<tool_number>",
"depth": "<depth>"
},
"name": "create_facing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| chain | No | Geometry to machine: {"entity_ids": [..]} (ids from list_geometry), or {"level": n, "depth": z or "all", "closed_only": bool}: curves lying flat in the tool plane. Omit = all levels. If curves are at several depths, depth (plane Z) is required. Closed chains run clockwise seen from the plane, so comp_side left = outside, right = inside. | |
| depth | Yes | Final faced Z | |
| plane | No | Tool plane: top, front, back, bottom, left, right or a plane name (HMC: front = B0). Curves are chained in this plane | |
| style | No | zigzag, one_way, one_pass, dynamic | |
| coolant | No | flood, mist, thru or off | |
| linking | No | Heights: {"clearance", "retract", "feed_plane", "top_stock"} are absolute Z unless the matching "*_incremental": true (also "depth_incremental"); "clearance_on", "retract_on", "rapid_retract". For drilling, feed_plane is the R plane. | |
| stepover | No | Max stepover distance (default 75% of the tool diameter) | |
| feed_rate | No | ||
| depth_cuts | No | Multiple Z steps: {"max_rough_step", "finish_cuts", "finish_step"} | |
| parameters | No | Any other parameter by path, e.g. {"LeadInOut.Enabled": true}. See get_operation_parameters for names. | |
| plunge_rate | No | ||
| tool_number | Yes | ||
| retract_rate | No | ||
| along_overlap | No | Percent of tool diameter (default 110) | |
| length_offset | No | H number (default: the tool's) | |
| spindle_speed | No | ||
| across_overlap | No | Percent of tool diameter (50 = 50%, converted to a distance); default 50; Mastercam needs at least 50 to face a boundary | |
| diameter_offset | No | D number (default: the tool's) | |
| leave_stock_floor | No | Floor stock (default 0) |