create_drill
Creates or regenerates drill, peck, tap, and bore toolpaths from entity IDs, arc diameters, positions, or bolt-circle patterns for Mastercam machining operations.
Instructions
Create and regenerate a drill/peck/tap/bore toolpath. Give entity_ids, arc_diameter, positions and/or bolt_circle.
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_drill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| peck | No | ||
| cycle | No | drill, peck, chip_break, tap, bore1, bore2, misc1, misc2 | |
| depth | Yes | Hole bottom (absolute Z unless linking.depth_incremental) | |
| dwell | No | Seconds at the bottom (default 0) | |
| peck2 | No | ||
| plane | No | Tool plane: top, front, back, bottom, left, right or a plane name (HMC: front = B0). Positions and bolt circles are in this plane | |
| shift | No | Bore shift distance (default 0 except bore/misc cycles) | |
| 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. | |
| feed_rate | No | ||
| positions | No | [[x, y] or [x, y, z], ...] | |
| tolerance | No | ||
| entity_ids | No | Arcs/points to drill (ids from list_geometry) | |
| parameters | No | Any other parameter by path, e.g. {"LeadInOut.Enabled": true}. See get_operation_parameters for names. | |
| bolt_circle | No | Hole pattern(s) like a print callout: {diameter, count, start_angle (deg from +X, CCW; default 0), center [x, y] (default 0,0), z (default 0)}; a list for several patterns | |
| plunge_rate | No | ||
| tool_number | Yes | ||
| arc_diameter | No | Drill every full circle of this diameter | |
| retract_rate | No | ||
| length_offset | No | H number (default: the tool's) | |
| spindle_speed | No | ||
| diameter_offset | No | D number (default: the tool's) |