add_hole
Cuts round holes in SolidWorks parts, including through, blind, counterbored, countersunk, and ISO-tapped holes for fasteners, inserts, and mounting features.
Instructions
Cut a round hole. Which one follows from the arguments:
diameter_mm at (x, y): straight through the thickness (the add_box extrude direction); coordinates share add_box's system (the centre of a 40x20 profile is x=20, y=10).
face='+z' (or '-x', ...) and z_mm: on ANY planar face, centred at 3D point (x, y, z), the face facing that way through the point (a pocket floor or a step works too). Through all, or depth_mm deep (blind: heat-set inserts, screw pilots). Returns
dimensions(diameter, x, y, depth).
cbore_diameter_mm and cbore_depth_mm: a counterbored screw hole from the +Z face, a flat-bottom pocket over the clearance shank so a cap-head screw or heat-set insert sits flush.
iso='clearance' (ISO 273), 'counterbore' (socket head cap screw), 'countersink' (socket countersunk screw) or 'tapped', with size='M6', face and z_mm: SolidWorks' Hole Wizard, sized by the standard's tables and carried into drawing callouts. fit 'close' / 'normal' / 'loose'; thread='modeled' cuts a real, printable ISO thread in a tapped hole instead of the cosmetic one. Returns the standard's sizes in
hole.
Prefer iso= for standard fasteners. Returns mass properties.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | normal | |
| iso | No | ||
| face | No | ||
| name | No | ||
| size | No | ||
| x_mm | Yes | ||
| y_mm | Yes | ||
| z_mm | No | ||
| thread | No | cosmetic | |
| depth_mm | No | ||
| diameter_mm | No | ||
| cbore_depth_mm | No | ||
| cbore_diameter_mm | No |