add_hole_on_face
Drills a round hole on any planar face at a specified 3D point, with through-all or blind depth options and optional edge-relative positioning for stable design intent.
Instructions
Drill a round hole on ANY planar face, centred at 3D point (x, y, z) mm.
face is "+x"/"-x"/"+y"/"-y"/"+z"/"-z": the face facing that way through the
point is drilled, so a pocket floor or a step works too. Through all, or
depth_mm deep (blind: heat-set inserts, screw pilots). Returns mass
properties and dimensions (diameter, x, y, depth). from_edges=True
measures x and y from the face's nearest straight edges instead of the
origin, so the hole keeps its distance to them when the part changes
(measured_from names the edges): use it where the design means it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| face | Yes | ||
| name | No | Hole | |
| x_mm | Yes | ||
| y_mm | Yes | ||
| z_mm | Yes | ||
| depth_mm | No | ||
| from_edges | No | ||
| diameter_mm | Yes |